I just heard this mentioned on a Slack channel. WP Staging is a duplicator plugin that allows you to create a copy of your website. It creates a clone of your website into a subfolder of your main WordPress installation, including a copy of your database. And it does an entire search & replace of all serialised links and paths.
I am tempted to try it on a spare site just to see how well it works. As and when I do that I will report back here on how it went.
This is how to add text below WooCommerce category thumbnails in the Product category pages. And not just a line or two, but several paragraphs of text. The ultimate aim is to overcome the ‘thin content’ on category pages.
To illustrate, here is the navigation menu on a WooCommerce site. I wanted to put content in the Greeting Cards category page, in the Occasions and Ranges category pages, and in all the sub-category pages.
As a side note, I already posted this article – ‘Non Clickable Menu Items‘ – about stopping visitors clicking on and seeing the main category pages. That solves the problem of what visitors see, but it only stops the main category pages from being clicked on. It doesn’t hide the pages themselves and it doesn’t stop Google crawling them and seeing thin content.
I don’t want to display the additional content above the thumbnails
I knew that I could display text above the product thumbnails on the category page by entering it in the Description field for the Product category.
By the way, there is a note below the Description field that says “The description is not prominent by default; however, some themes may show it.” That’s a note from WordPress, so any webmaster who goes into the back end to add that note sees it.
I am using Generate Press theme, and text I enter into the Description field does show on the front end. So I could add text into the Description field and it would show on the front end.
However, it is not suitable for displaying several paragraphs because it pushes the product thumbnails down the page.
And I don’t want visitors who are looking for product images to. have to scroll down past two or three paragraphs of text to get to the images.
I worked out that the hook that I wanted to hook into was woocommerce_after_shop_loop. And after some investigation I thought that Advanced Custom Fields would work to add an additional WYSIWYG editor to the product category.
Using Advanced Custom Fields to add a text field
So I created a field group with ACF with Show this field if the taxonomy is equal to Category (product_cat) and it is showed up in the right place. in the back end. But that didn’t mean it would display on the front end. That needed a snippet of code.
From a post on Contadodigital I worked out what code to use to add an action into the ‘woocommerce_after_shop_loop’ hook
function action_woocommerce_after_shop_loop() {
$term_id = get_queried_object()->term_id;
$post_id = 'product_cat_'.$term_id;
$custom_field = get_field('description_below_product_category_thumbnails', $post_id); // My Advanced Custom Field Variable
echo $custom_field;
};
add_action( 'woocommerce_after_shop_loop', 'action_woocommerce_after_shop_loop', 10, 2 );
Yoast doesn’t recognise the additional text
I have the Yoast SEO and the Yoast WooCommerce plugins installed. They cannot see the additional text. What I needed was something to bridge the gap, and that is what the ACF Content Analysis for Yoast SEO plugin does. It ensures that Yoast SEO analyzes all ACF content including Flexible Content and Repeaters.
The plugin is a cooperation between the people at AngryCreative and Team Yoast, so that seemed like a good bet for reliability.
The same speaker at the meet-up who recommended the Calendar plugin, also recommended Kadence Blocks, a Gutenberg plugin. Last December, in the post I wrote about WooCommerce themes I had tried, I mentioned a theme by Kadence.
I was impressed last night with all the things that the Kadence Blocks can do. After the meet-up I went to the Kadence website.
I see that in addition to the free standard Kadence Blocks they market an Advanced WooCommerce plugin that does more.
The features that interest me are variation swatches, custom cart messages that target specific carts, and a category description area below the category images. That last feature saves having to use Advanced Custom Fields to accomplish that job. The question in my mind is whether this plugin plays nicely with the Yoast SEO plugin and recognise one another.
One of the speakers at our last WordPress meetup suggested this calendar plugin.
It’s called Modern Events Calendar Lite and it describes itself as a responsive, mobile-friendly tool for managing events in websites. The speaker demonstrated it and it looks pretty impressive. That said, I have not used it, so I am putting it here as a reference for as and when I might need a calendar.
Multiple h1 tags on a page are bad, I thought. And I would have left it at that except for something I didn’t want to do. I didn’t want to mess about isolating the h1 font that displays over a hero image just to get it to render at the size I wanted. And I didn’t want to change the h1 font size globally because it fits in neatly in the hierarchy of sizes h2, h3, etc. that I have on the site.
So I decided to look up something I took at immutable fact. That is, namely, that multiple h1 tags on a page are bad.
You can have as many h2, h3, etc tags on a page as you like as long as they are nested in order, but you should only have one big h1 to control the page. That is what I thought.
John Mueller from Google
I googled and I found a video on YouTube that John Mueller from Google did in December 2017. He was answering a question raised by someone who had more that one set of h1 tags or his page and wondered how Google viewed that.
Mueller said that provided the h1 tags made sense to highlights different parts of a page, then having them on a page are just fine.
All of which goes to show that it is worthwhile going back and revisiting facts one thinks one knows, to check whether they are still facts.
I have a website at WordPress dot com, and I am signed up to receive email updates on the latest developments.
I just received an email headed ‘Import Your WordPress Site to WordPress.com — Including Themes and Plugins’ that says
“WordPress.com customers can now copy over everything from a self-hosted WordPress site — including themes and plugins — and create a carbon copy on WordPress.com. You’ll be able to enjoy all the features of your existing site, plus the benefits of our fast, secure hosting with tons of features, and our world-class customer service.”
The advantage of hosting a site on WordPress dot come is that Automattic (the company that owns WordPress dot com) looks after security.