Community Forums › Forums › Archived Forums › Design Tips and Tricks › Outreach – Can I add an image to the landing pages at top?
- This topic has 10 replies, 2 voices, and was last updated 10 years, 9 months ago by DarralynC.
-
AuthorPosts
-
June 28, 2013 at 8:02 am #48210DarralynCMember
I'm new to the website world and am using Outreach theme. I found a website that looks alot like Outreach with customization.
Is there a way to had a "header image" to the outreach theme that can be different on the landing pages? Would I need to create a custom template? I also want to add linked jpg "buttons" on the sidebar.This is a sample: http://www.oakschristian.org/admissions/index.aspx of what I want it to look like.
This is my site: http://ccsmain.carmeleducationalfoundation.org/?page_id=41Thanks for the help.
June 28, 2013 at 7:24 pm #48319Brad DaltonParticipantThere's several ways to do this.
You can use a plugin, CSS or PHP code.
Change the conditional tag if needed.
You could also use:
if (is_page('007') ) {
Change the 007 to the page i.d of your landing page.
June 29, 2013 at 9:33 am #48367DarralynCMemberJune 29, 2013 at 7:35 pm #48447Brad DaltonParticipantPlease copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor.
You will need to replace the HTML between the div tags with the HTML for your image.
June 29, 2013 at 8:20 pm #48452DarralynCMemberHi, Brad!
I copied and pasted in the themes functions.php at the end. This is what I changed to...
function add_header_genesis() {
if ( is_page_template('page_landing.php') )
echo '<div class="add-header"></div>';
};
add_action('genesis_header', 'add_header_genesis');I didn't see any changes...What am I not doing?
Thanks.June 29, 2013 at 8:23 pm #48456DarralynCMemberJune 29, 2013 at 8:31 pm #48458DarralynCMemberHi, Brad!
Ifunction add_header_genesis() {
if ( is_page_template('page_landing.php') )
echo '<div class="add-header"></div>';
};
add_action('genesis_header', 'add_header_genesis');function add_header_genesis() {
if ( is_page_template('page_landing.php') )
echo '<div class="add-header"></div>';
};
add_action('genesis_header', 'add_header_genesis');June 29, 2013 at 8:32 pm #48459DarralynCMember`function add_header_genesis() {
if ( is_page_template('page_landing.php') )
echo '<div class="add-header"><a href="http://wp.me/a3HapT-2s"><img class="aligncenter size-full wp-image-32590" alt="wp-sites-logo.png" src="http://ccsmain.carmeleducationalfoundation.org/wp-content/uploads/2013/06/wp-sites-logo.png" width="1152" height="69" /></a></div>';
};
add_action('genesis_header', 'add_header_genesis');June 29, 2013 at 8:32 pm #48460DarralynCMemberHi, Brad.
Finally got the code to paste...
thanks.June 29, 2013 at 9:10 pm #48464Brad DaltonParticipantJune 30, 2013 at 8:45 pm #48607DarralynCMemberHi, Brad!
Obviously, I have no idea what I am doing.
this is what I got:
http://ccsmain.carmeleducationalfoundation.org/?page_id=332 (landing page)this is the actual page template (it is a page template - not the landing page - I got these confused)
http://ccsmain.carmeleducationalfoundation.org/?page_id=322this is what I want it to look like:
http://www.oakschristian.org/grades_68/index.aspxheader
menu
jpg (this is what I want to add)
page layout (3 columns)Can you help?
Thanks so much for your help already...I really appreciate it. -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.