Community Forums › Forums › Archived Forums › Design Tips and Tricks › Page title using hook
- This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by
cwalsh.
-
AuthorPosts
-
September 9, 2013 at 7:56 am #61496
cwalsh
MemberI have a site that I am currently working on where I have used Simple Hooks to add a slideshow to the home page and on the interior pages in the same location I would like to add the page title, which is the part I'm not sure how to accomplish and I am hoping someone can give me some advice.
Here is what I added to [genesis_after_header]
<?php if (is_front_page()): ?>
<div id="home-slider">
<div class="wrap"><?php if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '51' ); ?></div>
</div>
<?php else: ?>
<div id="home-slider">
<div class="wrap"><p class="page-title"><?php wp_title(); ?></p></div>
</div>
<?php endif; ?>
http://66.147.242.190/~icfmichi/new-site/Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio
September 9, 2013 at 10:40 am #61524Brad Dalton
ParticipantYou can use this code in your child themes functions file rather than use Simple Hooks
Change the 51 in the code to your slider number if needed.
What did you want to do with the title?
September 9, 2013 at 12:15 pm #61553cwalsh
MemberThanks Brad. Is it possible to add that inside a full width div so I can style the background?
Regarding the page titles, I want to add them to a space between my 2 navigation bars. You can see on this page http://pixelperfectdesignstudio.com/ICF/about-icf-michigan/ there is a strip of orange background, that is where I want my page titles to appear. I need it to be full width as well.
Caley
Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio
September 9, 2013 at 2:50 pm #61575cwalsh
Membernever mind the part about adding the slider to a div, I got that worked out using CSS.
All I need to know now is how to add my page titles between the 2 navigation areas instead of in the content area.
Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio
September 10, 2013 at 9:23 am #61678Brad Dalton
ParticipantThere's different ways you can do this:
1. Create a custom field and hook into the position you want.
2. Reposition the page title.
3. Use a custom function wit conditional tag and hook in to your new position.
September 10, 2013 at 2:16 pm #61755cwalsh
MemberThanks again Brad. I re positioned my page headings using CSS.
Caley
Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.