Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1423592

    Hello, could you please tell me how I can change the sidebar on my /blog page to display the ‘pages’ sidebar?

    #1423640

    Hey gfriend70,

    Thank you for the inquiry.

    You can add this code in the functions.php file to change the sidebar of the blog page.

    add_filter('avf_custom_sidebar','avf_custom_sidebar_mod');
    function avf_custom_sidebar_mod($sidebar) {
    	if ( is_archive() || is_blog() ) {
    		$sidebar = "Sidebar Pages";
    	}
    	return $sidebar; 
    }
    

    Best regards,
    Ismael

    #1423831

    That has completely broken the page.

    #1423832

    I had to remove that code but I have pasted the error in the private content area.

    #1423863

    Hi gfriend70,

    Can you try to change is_blog() in Ismael’s code to is_home() ?
    Hope it helps.

    Best regards,
    Nikko

    #1423906

    Thank you, that has worked.

    #1423922

    Hi,
    Glad Nikko was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘blog sidebar’ is closed to new replies.