xandrula
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hitchcock] Editing a specific page?Thanks Anders, that answer solved it and I can now try to learn conditionals.
Have a good day.
Forum: Themes and Templates
In reply to: [Hitchcock] Editing a specific page?Hi Anders, thanks for answering.
I’m trying to work with conditionals on index.php but I’ve run into a problem.
As per my understanding, if the homepage is set up to display a static page I would have to use:
<?php if ( is_front_page() ) :And If I test it with this code
<?php if ( is_front_page() ) : echo '<p id=custom-content>'; echo 'Welcome to our Homepage!' ; echo '</p>'; else : echo '<p id=custom-content>'; echo 'This is one of our site subpages.' ; echo '</p>'; endif; ?>The blog page will return with “This is one of our site subpages” but the homepage will not return with “Welcome to our Homepage”
How can I target the static hompage with conditionals in this template?
Solved it by adding the whole link to the image including http://www.hjorhoey.dk etc..
To everyone wondering
I solved this by doing what Anders said. Wrapped the whole page with a wrapper div and made the navbar transparrent..navigation { background-color: transparent; } .wrapper { background-image: url("wp-admin/images/baggrund.jpg"); background-size: cover; background-repeat: no-repeat; }