Removal of 'Permalink …' wording

  • rodeboy

    #5798

    Hi you will see on this site I have the match report posts in the homepage panes at the bottom of the page;

    http://www.rocklandsyouthfc.co.uk/

    I wish to retain the links from the panes, but would like to remove the words “Permalink to ….” when you hover over the title and the ‘Read More’ button.

    I’m guessing there’s a CSS coding I could use with ‘display: None’ included but would appreciate advice/instructions.

    Thank you very much.

    Chris

    Anonymous

    #32704

    Add this code to child theme‘s functions.php. (Put his anywhere between opening <?php and closing ?> php tags.)

    function graphene_filter_gettext( $translated, $original, $domain ) {

    $strings = array(
    'Permalink to %s' => '&nbsp;',
    );
    if ( ! empty( $strings[$original] ) && is_front_page() ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );

    rodeboy

    #32705

    Thanks Prasanna.

    Goodness, i wasn’t expecting all that! Can I not put it in the Custom CSS – Graphene Options, as I don’t have a child theme running?

    Thanks, Chris

    Anonymous

    #32706

    I don’t think there is a CSS way to hide it. If you are not willing to use child theme, you may try this plugin – Remove Title Attributes

    http://wordpress.org/extend/plugins/remove-title-attributes/

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.