If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Monstroid. How to make the Header Top Line Shop sidebar display on regular pages

This tutorial is going to show you how to make the Header Top Line Shop sidebar display on regular pages in Monstroid theme.

Monstroid. How to make the Header Top Line Shop sidebar display on regular pages

By default, this sidebar is displayed only on WooCommerce pages, the about-shop and home-shop pages. This sidebar usually has the shop menu, product search and cart:

Monstroid._How_to_make_the_Header_Top_Line_Shop_sidebar_display_on_regular_pages-1

If you create a regular page, you won’t see the Header Top Line Shop sidebar on it:

Monstroid._How_to_make_the_Header_Top_Line_Shop_sidebar_display_on_regular_pages-2

In order to enable the sidebar on a regular page, you need to perform the following:

  1. Open the page in a WordPress editor and copy its slug:

    Monstroid._How_to_make_the_Header_Top_Line_Shop_sidebar_display_on_regular_pages-3

  2. Go to Appearance – Editor and select to edit the templates/wrapper-header.php file of the Monstroid theme.

  3. Find the nested if condition at the top of the page, which should look like this:

    			if ( cherry_woocommerce_is_really_woocommerce_page() || is_page('about-shop') || is_page('home-shop')) {
    			cherry_static_area( 'header-top-line-shop' );
    			}
    		
  4. Add a new condition in the form of is_page('slug'). Don’t forget to put a double pipe literal before the new condition. It looks like || and means OR. The final result should look like this:

    			if ( class_exists( 'WooCommerce' ) ) {
    			if ( cherry_woocommerce_is_really_woocommerce_page() || is_page('about-shop') || is_page('home-shop') || is_page('regular-page')) {
    			cherry_static_area( 'header-top-line-shop' );
    			}
    			}
    		

    Monstroid._How_to_make_the_Header_Top_Line_Shop_sidebar_display_on_regular_pages-4

  5. Click the Update File button and reload the page. The sidebar appears on the newly created regular page now:

    Monstroid._How_to_make_the_Header_Top_Line_Shop_sidebar_display_on_regular_pages-5

Feel free to check the detailed video tutorial below:

Monstroid. How to make the Header Top Line Shop sidebar display on regular pages