Site title & description

Community Forums Forums Design Tips and Tricks Site title & description

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  malcomiles 1 month, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #113136

    malcomiles
    Member
    Post count: 16

    Hello there. :)

    Recently I started to modify a child theme to look like my mockup, one of the design quirks of the custom child theme is that the site description goes before the site title.

    I tried to remove the title and the description from the functions, then adding it again in reversed order, but they stay in the same place, because <? the_title?> and <? the_description?> are hard-coded in the genesis framework.

    Then I wondered if I can place site_description in the genesis_before_header but then I wonder if I’m messing the SEO because site description no longer goes inside the header.

    ¿Any ideas?

    cheers :)

    #113149

    dev
    Participant
    Post count: 457

    See http://my.studiopress.com/snippets/header which might help.

    Brad Dalton has an excellent piece on this too… probably better than above.

    http://wpsites.net/web-design/remove-header/

    I know you want to reorder and not remove, but this may give you some ideas until Brad shows up to tell us all how it should be done. It’s beyond my pay grade! :-)

    Dev

    http://www.NewMediaWebsiteDesign.com

    #123791

    malcomiles
    Member
    Post count: 16

    I finally made it :D , it involves removing the site title altogether then code my solution in the functions php file. It works just fine ^^ Its like creating a normal php file on a blank theme, but on the functions php with some actions to hook it in the right place of genesis.

    /** Remove default site title and add custom site title **/
    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    function custom_site_title() {
    echo '<h2 class="site-description" itemprop="description">';echo bloginfo ('description');'<h2>';
    echo '<h1 class="site-title" itemprop="headline"><a href="#">';echo bloginfo ('title');'</a><h1>';
    }
    add_action( 'genesis_site_title', 'custom_site_title' );
    • This reply was modified 1 month, 1 week ago by  malcomiles.
    • This reply was modified 1 month, 1 week ago by  malcomiles.
    • This reply was modified 1 month, 1 week ago by  malcomiles.
    • This reply was modified 1 month, 1 week ago by  malcomiles.
    #124084

    malcomiles
    Member
    Post count: 16

    Even easier x_D

    // Inverse title and site description order

    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    add_action( 'genesis_site_title', 'genesis_seo_site_description' );
    add_action( 'genesis_site_description', 'genesis_seo_site_title' );
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.