- This topic has 6 replies, 2 voices, and was last updated 4 years, 2 months ago by Theme Horse Support Team.
-
AuthorPosts
-
September 11, 2020 at 10:43 pm #80943alex.casinov777Participant
Greetings!
I want to delete URLs for Author and Date, but still, keep them visible. For example, at the moment I have this:
September 7, 2020 Alex Konst No Comments
Both data (Author name and date) are clickable. Yoast SEO can only remove these features, but I want to keep them, and just remove links, because at the moment, from my post there are 30+ outbound links (2 from the post breadcrumbs, 20 in a right sidebar, 10 in the footer).
Can you help me with that?
September 13, 2020 at 1:36 pm #80990Theme Horse Support TeamKeymasterHi alex.casinov777,
To make the Date and Author not clickable then Please go to ‘Appearance > Customize > Additional CSS’ and paste the below Custom CSS code.
.entry-meta .author a, .entry-meta .date a { pointer-events: none; cursor: default; }
Thanks
September 14, 2020 at 9:15 am #81007alex.casinov777ParticipantSeptember 14, 2020 at 9:17 am #81008alex.casinov777Participantfor example
<div class="by-author vcard author"><a href="#">Matthew Gill</a> </div> <a href="#">Matthew Gill</a> <div class="by-author vcard author"><a href="#">Matthew Gill</a> </div>
September 16, 2020 at 11:05 am #81060Theme Horse Support TeamKeymasterOk if you want to remove the code as well then you have to remove the link from the code of every sections and widgets. As you know the code to remove the link but we recommend you to customize the after making the child theme so that you wont loose the customized code when updating the Theme to a newer Version in future.
Thanks
September 16, 2020 at 11:11 am #81062alex.casinov777ParticipantThe problem is that I cant find a file that holds all data for the links :C can you help me where to dig?
September 18, 2020 at 1:20 pm #81119Theme Horse Support TeamKeymasterGo to theme directory > inc > function.php. On line no: 142 to 144, you will find the below line of codes.
$posted_on = '<a href="' . esc_url( get_permalink() ) . '" title="'. the_title_attribute('echo=0') . '">' . esc_html( $time_string ) . '</a> '; $byline = '<a href="' . esc_url( get_author_posts_url( get_the_author_meta('ID') ) ) . '">' . esc_html( get_the_author() ) . '</a> ';
Now replace the above code with the code provided below.
$posted_on = '<a href="#" title="'. the_title_attribute('echo=0') . '">' . esc_html( $time_string ) . '</a> '; $byline = '<a href="#">' . esc_html( get_the_author() ) . '</a> ';
Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.