Categories

Featured templates

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

Guillaume Dumas November 3, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

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

Wordpress Web Templates
This entry was posted in Monstroid Tutorials, WordPress Tutorials and tagged header, line, Monstroid, page, shop, top. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket