Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1342342

    Is it possible to display the author’s name in the magazine but remove the link to their bio page? I would like to see the author’s name as it is, but with no link. I appreciate your help.

    #1342346

    Hey aradiasun,
    Thanks for your question, here are two solutions,
    the first is css and just makes the link not clickable, add this code in the General Styling ▸ Quick CSS field:

    .av-magazine-author-link a {
    	pointer-events: none;
    }

    After applying the css, please clear your browser cache and check.

    The second solution removes the link, add this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
        <script>
    (function($) {
    $('.av-magazine-author-link a').each(function() {
        $(this).contents().unwrap().wrap('<span/>');
    
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.