• Resolved itspocket

    (@itspocket)


    Hi there,

    new person here.

    So I am trying to add a sidebar to my archives page (and archives php file)— link at: https://www.talipurkerson.com/category/blog)

    The code I’m working to put the side bar on the categories page is:

    (<div id=”sidebar”>

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar-2’) ) : ?>
    <?php endif; ?>

    </div>)

    however, I am having trouble figuring out where to put it in the archive php file. Anywhere I put it it messes up the rest of the page.(and it doesn’t go over top of the categories like it does pages and posts)- it just divides them or pushes everything wayy down on the page- is there a way to balance it so it is on the side of the posts and not above or below the posts(you can see the link for a reference if you scroll down)

    Any suggestions? Thank you so much in advance!

    Thanks again and cheers!

  • The topic ‘Where to put sidebar code in archives.php’ is closed to new replies.