Forums

Modifying Sidebar Content based on Page Id (2 posts)

  1. wcsconcierge
    Member
    Posted 1 year ago #

    Hello, I am using WP Theme 1073 by Hugo (Template-Monster.com) and I want to modify the content of sidebar-2 depending on the Page ID.

    Please refer to my site, http://www.webconciergeservices.com for reference.

    Under projects, I have a quote from each project profiled, and I want to add those quotes in the sidebar2 position. For instance, in my Joomla projects page, I have a quote from AvenueResource.com. On my HTML page, I have a quote from AlertMedicalResponse.com.

    I am trying to find out how to modify the content on each page of the projects section with the appropriate quote. (All content on right-hand side will be client quotes, so don't have to mess with the background image or anything.)

    My assumption is that I need to modify the code of sidebar2.php to branch depending on the current page no. -- Can someone stub in the logic for me, so I can finish it out?

    The page_id for HTML projects is 74.
    The page_id for JOOMLA projects is 76.
    The page_id for GoDaddy is 78.
    The page_id for FLASH is 83.
    The page_id for WORDPRESS is 88.

    Thanks in advance!
    Di, Web Concierge

  2. clau_bolson
    Member
    Posted 1 year ago #

    Hi Di, I see in your site that you did it. Can you share how? Thanks, Claudia

Topic Closed

This topic has been closed to new replies.

About this Topic