-
-
I am using the timeline layout for my blog landing page and i would like to disable the ability to click on the author avatar. This only brings you to the top of the page and that doesn’t really feel like the result a user would anticipate when clicking. To be clear, I don’t want to remove the author avatar, just want to make it unclickable.
One other issue regarding timeline and the author avatar is that on the first article on the page, the active area that displays the author’s name upon hove doesn’t seem to be lined up correctly.
You can see see both of these behaviors here home.contv.com/news
Thanks
Chris
-
Hello,
Please edit the file ‘specular/includes/views/blog/loop-timeline.php’, find the lines:
<a href="#" rel="tooltip" data-placement="left" title="<?php echo get_the_author() ?>"><?php echo get_avatar(get_the_author_meta( 'ID' ), 64); ?></a>
and replace with:
<?php echo get_avatar(get_the_author_meta( 'ID' ), 64); ?>
Best regards!
- This reply was modified 9 years, 8 months ago by Ruco.
-
That is almost what i am looking for. This does accomplish turning off the clickthrough on the avatar but it also removes the tooltip with the authors name. Is there anyway for that to remain?
-
Or perhaps leave the click through functionality but set it to display a result page for the authors posts
-
Hello,
It’s not possible to keep the tooltip, it’s on the link.
You can use this link:
<a href="<?php echo get_edit_user_link(get_the_author_meta( 'ID' ))?>" rel="tooltip" data-placement="left" title="<?php echo get_the_author() ?>"><?php echo get_avatar(get_the_author_meta( 'ID' ), 64); ?></a>
Best regards!
- This reply was modified 9 years, 8 months ago by Ruco.
-
You must be logged in to reply to this topic.