Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #894103

    there is in case of heaving that little round author image on blog listings a backlink to author infos. :

    the infos except the biografie are not alway correct – because portfolio postings of those authers are not in the counter.

    if i have that backlink the infos have to be correct. So on non mobile devices i set the pointer-event to none. – But on ipad etc the click function still gets active.

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";

    or is it possible to get here only the link to the concerning post ( like on featured images)

    #894551

    Hey Guenter,

    Thank you for using Enfold.

    Did you use the correct css media query for the pointer-events?

    Best regards,
    Ismael

    #894726

    shure – i want to get rid on all devices and i see it in any browser on desktop devices- that it will work
    but on i pad i can touch on the images and the author page opens
    see private content

    edit : maybe the css : touch-action will solve the problem by setting it to none (similar to pointer-event)

    edit-edit: safari does not support touch-action – only auto and manipulation works on safari ios but not the none rule

    • This reply was modified 6 years, 10 months ago by Guenni007.
    #895983

    Hi,

    Maybe, you can replace the link tag with a span tag on mobile device. Something like…

       $(".post-author-format-type").replaceWith(function() {
            return $("<span>" + $(this).html() + "</span>");
        });

    // http://jsfiddle.net/naveen/ufYCt/1/

    Best regards,
    Ismael

    #896323

    thanks thats it – i added this to functions.php of child-theme:

    function no_link_on_author_image(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
    		    $("a.post-author-format-type").replaceWith(function(){
    		        return $("<span class='post-author-format-type'>" + $(this).html() + "</span>");
    		    });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'no_link_on_author_image');

    but on doing that the span.image-overlay is overlapping the content besides -#
    and so the links to the posts are not clickable !
    To avoid that i put in quick css:

    .post-author-format-type .image-overlay.overlay-type-extern {
        display: none;
    }

    Thanks – can be closed

    • This reply was modified 6 years, 10 months ago by Guenni007.
    #896468

    Hi,

    Thanks Günter, I’ll close the thread for now.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘author link in loop-index.php’ is closed to new replies.