Okay
  Public Ticket #1530986
Remove anchor tag on Author names in Posts
Closed

Comments

  • viafoura started the conversation

    Hello I would like to remove the anchor tags on all Author names, but I still want to display the Author name. I assume I would have to remove something from single.php but I don't want to break all my post pages.

  •  9,012
    Tahir replied

    Hey Again,

    Please provide the page url so that i can write up the custom css for whats possible.

    Thanks


    ThemeNectar Support Team 

  •   viafoura replied privately
  •  9,012
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    span.meta-author.vcard.author {
        pointer-events: none !important;
    }

    Thanks


    ThemeNectar Support Team 

  • viafoura replied

    Thanks, I actually changed the single.php (in the child theme):

    <span class="meta-author vcard author"><span class="fn"><?php echo __('By', NECTAR_THEME_NAME); ?> <?php the_author_posts_link(); ?--></span></span> 

    to:

    <span class="meta-author vcard author"><span class="fn"><?php echo __('By', NECTAR_THEME_NAME); ?> <?php the_author(); ?></span>

  •  3,034
    Andrew replied

    Hey there,

    Thanks for reaching in,

    Please be sure to reach in in case you encounter another issue,

    Regards