New Landing How can we help? Themeforest Theme Support Dante Remove "by" before author in post detail page

Viewing 15 posts - 1 through 15 (of 19 total)
  • Posted in: Dante
  • #184047
    newki
    Member
    Post count: 177

    Hello,

    To remove author name, you told me to use the button in Theme options / Blogs options.
    It’s OK for the homepage and the archives but on the article page details, I still have “Posté par” (= by in english)
    How can I remove it? Thanks !

    #184083
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Add the code below to your custom css option.

    .single-post .post-info span{
    display:none;
    }

    -Rui

    #184085
    newki
    Member
    Post count: 177

    OOps with this code, all the line disappears (date also)

    #184088
    Nishant – SUPPORT
    Spectator
    Post count: 649

    Can you please attach a screenshot to explain what you want to be removed?

    #184091
    newki
    Member
    Post count: 177

    OK here is the print screen.
    As I’ve removed the Author info in Theme options / Blog options, it’s weird to have “Posté par” (=by in engish) before the date.
    So I’d like to delete “Posté par.
    Thanks for your help

    Attachments:
    You must be logged in to view attached files.
    #184102
    Nishant – SUPPORT
    Spectator
    Post count: 649

    Can you post your admin login details marking private reply option below?

    #184103
    newki
    Member
    Post count: 177
    This reply has been marked as private.
    #184106
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    There is no way to remove only that piece of text with css. That’s why I provided the css.

    Let’s wait for Nishant reply.

    -Rui

    #184122
    Nishant – SUPPORT
    Spectator
    Post count: 649

    Hello newki,

    As Rui said, it cannot be done by css. But, modifications should be made to the theme files to achieve that.

    I saw that you dont have child theme installed so I won’t recommend making changes to theme files because all the custom changes will lost after theme update.

    #184128
    newki
    Member
    Post count: 177

    OOps I don’t see the line in my css because you deleted all the sentence. I’d like it back 😉

    .single-post .post-info span{
    display:none;
    }

    For the childtheme, I usually do it, when I work trhough the Editor part but with your Theme Opetion, I thought my customize css would be considered as a child…

    #184160
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    
    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    //$translated_text = strtolower($translated_text);
    switch ( $translated_text ) {
    case 'by' :
    $translated_text = __( ' ', $domain );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>

    Thanks
    Mohammad

    #184176
    newki
    Member
    Post count: 177

    I don’t know what Nishant touched but I don’t have anything now 😉 no date any more

    #184196
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Did you removed the css I provided?
    -Rui

    #184199
    newki
    Member
    Post count: 177

    Yep I’ve removed instantantly this

    .single-post .post-info span{
    display:none;
    }

    Then Nishant had a look directly in WP and since then, I don’t have my line. I can’t find what he did. I ddn’t put what Mohammad said in the functions.php file yet.

    #184246
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    In that case will forward to Nishant so he can reply when he comes online.

    -Rui

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register