• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Page title using hook

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Page title using hook

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by cwalsh.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 9, 2013 at 7:56 am #61496
    cwalsh
    Member

    I 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; ?>


    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

    http://66.147.242.190/~icfmichi/new-site/
    September 9, 2013 at 10:40 am #61524
    Brad Dalton
    Participant

    You 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?


    Tutorials for StudioPress Themes.

    September 9, 2013 at 12:15 pm #61553
    cwalsh
    Member

    Thanks 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 #61575
    cwalsh
    Member

    never 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 #61678
    Brad Dalton
    Participant

    There'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.


    Tutorials for StudioPress Themes.

    September 10, 2013 at 2:16 pm #61755
    cwalsh
    Member

    Thanks 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

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble