-
AuthorPosts
-
January 6, 2018 at 3:44 pm #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)
January 8, 2018 at 3:21 am #894551Hey Guenter,
Thank you for using Enfold.
Did you use the correct css media query for the pointer-events?
Best regards,
IsmaelJanuary 8, 2018 at 3:39 pm #894726shure – 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 contentedit : 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.
January 11, 2018 at 6:06 am #895983Hi,
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,
IsmaelJanuary 12, 2018 at 12:27 am #896323thanks 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.
January 12, 2018 at 9:02 am #896468 -
AuthorPosts
- The topic ‘author link in loop-index.php’ is closed to new replies.