Forum Replies Created
-
AuthorPosts
-
This worked great. Thanks for your hard work to help me.
Follow up questions, can I experiemtn with the loop-index.php file by adding other conditional tags in different spots to affect my product posts? Just curious. Thanks again!
On the single post pages, I’d like them to appear between the title of the product, and the beginning of the post content.
It can be any image, really, I”m just wanting them to be category specific.
Where would I edit the includes/ loop-index.php file and with what code? Can I an an if statement to that file?
Best wishes,
Brian BookwalterStill stuck after adding all types of code to single.php, or functions.php, and functions-enfold.php.
I’m not sure if its possible to do what I’m doing considering this template and the information I’ve already put into the site.
Any other suggestions, thanks?
Brian
This reply has been marked as private.I’m applying the image to the herbicides category.
I can tell something is happening since when I add that PHP code you provided, I get the white screen on single.php pages only one my site.
Basically, I have posts organized by about 5 different categories, and they are displaying in the single.php template.
Maybe I should try that code in the functions.php file?
I DID get the code BELOW to work in the header…but I dont’ need the images in the header…..
<!-- <?php if(is_category('herbicides')):?> <img src="http://bookwalterdesign.com/albaughinc/wp-content/uploads/2014/07/Fulton.jpg"> <?php elseif (is_category('fungicidies')):?> <img src="http://bookwalterdesign.com/albaughinc/wp-content/uploads/2014/07/Hoskins.jpg"> <?php endif;?>-->
-
AuthorPosts