pddiaz
Forum Replies Created
-
That did it, thanks for your help Joseph P..
How would I write this in the .php page though? I’m learning PHP, but have a ways to go…
Forum: Themes and Templates
In reply to: Adding custom background image to page-template(s) through php?That did the trick. I really appreciate your patience and help with this small but extremely powerful method of using the body class. THANK YOU JLueuze!
Forum: Themes and Templates
In reply to: Adding custom background image to page-template(s) through php?Thats right, but I am using another CSS method.
The link is: https://www.o-pd.com/HilaryHahn
I would like to change the background for each different page on the nav.
Right now this is how the body tag is in the header.php
<body class=”<?php semantic_body(); ?>”>
Forum: Themes and Templates
In reply to: Adding custom background image to page-template(s) through php?Hi JLeuze, thanks again for your help. I’m using wp-framework for a custom build, however I want to do what cesbloggan did above, assign a different full background image to each different page.
I’m just unsure how I can do this still, are you saying I don’t need the conditional then?
the wp-framework has this as the body tag: <body class=”<?php semantic_body(); ?>”>
But I am unsure how I can edit or add body styles still.. I’m sorry for the slow learning curve, I’m not a php guy yet…
Forum: Themes and Templates
In reply to: Adding custom background image to page-template(s) through php?Hi JLeuze, I’m still trying to understand how to set up the conditional to check the page.
Should the conditional statement replace the: <body class=”<?php semantic_body(); ?>”> ?
If so, how would I write it so that this is the first class, and the depending on the page id, designate a new body_about{} style if the user went to the page titled About?
Thanks for your continued help..
Forum: Themes and Templates
In reply to: Adding custom background image to page-template(s) through php?Hey guys, I’m actually trying to do the same thing, but am a bit confused. I need to have a 100% bg image for each different Page on my WP site. I am using CSS to style the background image (the img source would be declared in the CSS specific to each page depending on what page they are in.
My question is: What file does the if else statement go? How would I declare CSS in that conditional?
Any help is appreciated.