• Hello,

    I want to remove the sidebar Archives from the sidebar. However, i have removed from the widgets but still the archive option is visible on the side and also want to remove the page name listed under every page.

    I have 6 pages and on every page the page name is listed.

    for example, when i click on Contact Us The very first line says Home/Contact Us. Same is the case with all the remaining pages, Home/Page Name with the grey background.

    While i try to inspect the code it is showing me enigma_header_breadcrum_title. Please let me know how to remove it

    My website is not live and i am trying on localhost.

    Regards,
    Amandeep Singh Deol

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello

    For removing sidebar –

    first create child theme using given LINK

    now copy single.php from main theme folder and paste in child theme folder after copy and paste open single.php of child theme folder go to line no.3 see codes

    <div class="container">	
    	<div class="row enigma_blog_wrapper">
    	<div class="col-md-8">	
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>		
    		<?php get_template_part('post','content'); 
    		get_template_part('author','intro');
    		endwhile; 
    		else : 
    		get_template_part('nocontent');
    		endif;
    		weblizar_navigation_posts();
    		comments_template( '', true ); ?>
    	</div>
    	<?php get_sidebar(); ?>	
    	</div> <!-- row div end here -->	
    </div><!-- container div end here -->

    replace it with below code

    <div class="container">	
    	<div class="row enigma_blog_wrapper">
    	<div class="col-md-12">	
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>		
    		<?php get_template_part('post','content'); 
    		get_template_part('author','intro');
    		endwhile; 
    		else : 
    		get_template_part('nocontent');
    		endif;
    		weblizar_navigation_posts();
    		comments_template( '', true ); ?>
    	</div>
    	<?php //get_sidebar(); ?>	
    	</div> <!-- row div end here -->	
    </div><!-- container div end here -->

    and save file

    For page name removing –

    Please go to Admin Dashboard >> Appearance >> Customize >> Theme Options >> Theme general Options.

    Now, copy below code and paste into Custom CSS.

    .enigma_header_breadcrum_title {
        display: none !important;
    }

    Let us know for further query.

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    Thanks for your reply.

    May i know the reason to put !important, what does it mean. I tried inserting the code without important and it worked.

    Regards,
    Amandeep Singh Deol

    hii Amandeep

    !important is used to override the CSS. So that the other is not conflicts with this !important CSS.

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    Thanks a lot šŸ™‚
    It means that the preference is given to that code of line which contains !important.

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    Hello,

    I pasted the above code to remove the Archives sidebar under single.php file by creating a child theme. However, it is not working. I tried to inspect the code for archives and below is the code from where it is taking the whole code:

    <div class=”col-md-4 enigma-sidebar”>
    <div class=”enigma_sidebar_widget”><div class=”enigma_sidebar_widget_title”><h2>Archives</h2></div>

    </div></div>

    Please provide me the suggestion asap.

    Regards,
    Amandeep Singh Deol

    if it is not work in child theme you can copy and paste code in main theme folder single.php.it will work.

    thanks

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    Hello,

    It is still not working.

    Regards,
    Amandeep Singh Deol

    Hello,

    Please contact us here weblizar

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    Hello,

    I contacted on the portal and submitted my query under the message section.

    For your reference, i have attached the screenshot.

    sidebar

    Regards,
    Amandeep Singh Deol

    Hello,

    first, create a child theme using given LINK

    now make a file in the child theme and save it with the name sidebar.php and copy the code from the link given below –

    Here

    save your file. and activate your child theme.

    Thread Starter amandeepdeol1986

    (@amandeepdeol1986)

    You rock šŸ™‚

    It worked as per my requirement.

    Thanks a lot.

    Your most welcome Aman.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Remove Sidebar and page name’ is closed to new replies.