WordPress.org

Ready to get started?Download WordPress

Forums

having different front/sub pages (4 posts)

  1. mmusil
    Member
    Posted 4 years ago #

    I am using wordpress to design the website for my church (you can see our page here at livinghopefellowshipefc.com). It has been a real adventure and I am learning lots more about html/php/web design.

    Now what I want to do is change the content of the right sidebar so that it changes relative to each page. For example, on the front page it will have links "todays devotional", "recent news", etc. On the about page it will have links to "statement of faith", "our history", "contact us", etc. On the missions page, it will have links to "global outreach", "local outreach", etc.

    I am guessing I'm going to have to modify some theme files, but I am not yet sure which files. I will continue to research but any help you can provide will be much appreciated!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    There are 2 ways to approach this:

    1. One global sidebar file that loads custom content depending upon the current page

    2. Different sidebar files that are loaded depending upon the current page.

    Option 1 involves editing a single file (usually sidebar.php) but it does mean that the file can become quite complex. Option 2 results in a number of smaller sidebar files but you may then have to make very small edits to a number of other files in your theme - depending upon where your current sidebar is called in your theme (hint: look for <?php get_sidebar();?>).

    Which option do you want to try?

  3. digitalnature
    Member
    Posted 4 years ago #

    3. use the widget context plugin

  4. mmusil
    Member
    Posted 4 years ago #

    Yay for plugins- it seems that I found a solution using the Display Widget and Sub Pages Widget plugins. Feel free to correct me if this is not the best way to do things, but at the very least it seems to work and do what I want it to do.

Topic Closed

This topic has been closed to new replies.

About this Topic