Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active February 17, 2016 02:45

Revisions

  1. srikat revised this gist Apr 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion functions.php
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@

    add_filter( 'genesis_seo_title', 'custom_genesis_seo_title', 10, 1 );
    /**
    * Replace Site Title text entered in Settings > Reading with custom HTML
    * Replace Site Title text entered in Settings > Reading with custom HTML.
    * @author Sridhar Katakam
    * @link http://sridharkatakam.com/replace-site-title-text-custom-html-genesis/
    *
  2. srikat revised this gist Apr 25, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    <?php
    //* Do NOT include the opening php tag

    add_filter( 'genesis_seo_title', 'custom_genesis_seo_title', 10, 1 );
    /**
    * Replace Site Title text entered in Settings > Reading with custom HTML
  3. srikat revised this gist Apr 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion functions.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    /**
    * Replace Site Title text entered in Settings > Reading with custom HTML
    * @author Sridhar Katakam
    * @link http://sridharkatakam.com
    * @link http://sridharkatakam.com/replace-site-title-text-custom-html-genesis/
    *
    * @param string original title text
    * @return string modified title HTML
  4. srikat revised this gist Apr 25, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion functions.php
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,5 @@
    */
    function custom_genesis_seo_title( $title ) {
    $title = '<h1 itemprop="headline" class="site-title"><a title="Homepage" href="' . get_bloginfo('url') . '">Custom <span style="color: #0f709e">HTML</span> here</a></h1>';

    return $title;
    }
  5. srikat created this gist Apr 25, 2014.
    14 changes: 14 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    add_filter( 'genesis_seo_title', 'custom_genesis_seo_title', 10, 1 );
    /**
    * Replace Site Title text entered in Settings > Reading with custom HTML
    * @author Sridhar Katakam
    * @link http://sridharkatakam.com
    *
    * @param string original title text
    * @return string modified title HTML
    */
    function custom_genesis_seo_title( $title ) {
    $title = '<h1 itemprop="headline" class="site-title"><a title="Homepage" href="' . get_bloginfo('url') . '">Custom <span style="color: #0f709e">HTML</span> here</a></h1>';

    return $title;
    }