Forums

SQL for getting a sidebar to appear on all the pages? (2 posts)

  1. stehchng
    Member
    Posted 7 months ago #

    Hi,

    I have a Vamtam theme installed (Progressio) and I want to get my blog sidebars on all the pages throughout the site. Right now I've been doing it manually but there are a ton of pages to do that for!

    I've read somewhere that I can use a mass SQL statement to do that but I'm pretty new to coding (other than HTML) so not sure how to go about that, hoping someone here could help!

    Thanks in advance

  2. w3dgie
    Member
    Posted 7 months ago #

    Edit your template.

    Either: index.php, single.php, or page.php.

    Ensure that those files use <?php get_sidebar(); ?> somewhere within the template.

    Your sidebar content will be stored in your theme's directory with the file name of "sidebar.php".

    That's all there is to it!

Reply

You must log in to post.

About this Topic