Newb with dynamic sidebar question
-
Hi, new WP developer here. I’m trying to add static content(actually, just an image and associated href) at the top of a right sidebar that contains blocks of dynamic content. The sidebar changes based on the section of the site the user is in.
I’m having trouble finding where to add the code for the image. I do know PHP, but not so much WP. I found this code in sidebar.php:
if (getTopID()==999) { dynamic_sidebar('About Us'); } else if (getTopID()==998) { dynamic_sidebar('Details'); } else if (getTopID()==997) { dynamic_sidebar('Projects'); }...
So if I want to add the static image only above the ‘Details’ sidebar, and sorry if this is a dumb question, would I edit the ‘Details’ dynamic sidebar directly? If so, where would I locate the HTML if it exists for the dynamic sidebars?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Newb with dynamic sidebar question’ is closed to new replies.