appearance of new page

http://www.josephflynn.com/uncategorized/fixer-upper/ Is a Post. http://www.josephflynn.com/donnelys-mug/ Is a Page. Your theme has different templates for each. In your case that’s Twenty Seventeen, the default theme this year. Looking at the templates and styling it would be a bit of a pain to change the post template to match the page, so if you’re happy with how … Read more

WooCommerce doesn’t show UK countries in the shipping options [closed]

You won’t be able to find England specifically in their list. The UK treats several areas as separate countries, and other regions can only be separated by postal code. United Kingdom Republic of Ireland Jersey Guernsey Isle of Man https://github.com/woocommerce/woocommerce/blob/master/i18n/countries.php I should also mention that the “Sell to countries…” field controls the Billing side of … Read more

How to Create a Multi Purpose Theme?

The way I do it is create multiple layout files, add the option to choose which one to use on the template options panel: layout-left.php layout-right.php layout-both.php Then on the index page you setup if layout X is chosen, load X layout. This is an example using the option tree plugin theme options: <?php get_header(); … Read more

Hiding all products except for one in wordpress admin panel

You have to use pre_get_posts hook to alter the WordPress main query. $query->get() : https://developer.wordpress.org/reference/classes/wp_query/get/ is_admin() : https://codex.wordpress.org/Function_Reference/is_admin pre_get_posts hook : https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts // Handle the main query and set the post ID to 9 function wpse_288586_hide_products($query) { // We have to check if we are in admin and check if current query is the main … Read more

Customizing the add to cart function

To do this you need to use the woocommerce ‘woocommerce_add_to_cart’ hook to add your custom function. something like this : add_action(‘woocommerce_add_to_cart’, ‘my_function’); function my_function(){ //…….. } This has been answered in another question here : https://stackoverflow.com/a/34255005/3134410

Show count comments under the title

First, you should look at creating a child theme. That way, any modifications you make won’t be removed by a WordPress update. Next, edit wp-content/themes/twentyseventeen/template-parts/post/content.php and look for the following code: if ( is_single() ) { the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); } elseif ( is_front_page() && is_home() ) { the_title( ‘<h3 class=”entry-title”><a href=”‘ . esc_url( … Read more