-
AuthorPosts
-
December 4, 2018 at 5:43 pm #1040817
Hi gang,
I came across a pretty significant problem with the column links or rather the anchor texts. Here’s a screenshot of my website that should help you guys understand what I’m talking about: click here
–
1. I’ve built a small grid (2 rows of 1/3 columns) of clickable columns
2. On inspection, this is the code I found that’s being used for the column links.
3. This is the page the column is linking to.
4. This is the problem: The anchor text the columns use is automatically generated and it sucks. From an SEO standpoint this is incredibly bad.
–
I know, from a design standpoint this pretty much doesn’t matter, but I and the people I keep recommending the theme to use it not only for its great functionalities, but also for its SEO friendly features and this is a big issue for us SEO people.
–
QUESTION 1: Is there a workaround I can implement right now, so I can set the anchor texts manually?
QUESTION 2. This is rather a suggestion than a question, but please, can you guys add a field to the column links settings, so we can set the anchor texts?December 5, 2018 at 6:08 am #1041077Hey tixxpff,
One solution is to change the text in your theme, please go to:
\enfold\config-templatebuilder\avia-template-builder\php\generic-helper.class.php line 154 and look for:return __( 'Follow a manual added link', 'avia_framework' );
and adjust to suit. This method will set the text to be the same for every column link across your site.
A second solution is to add a unique custom class to each column link, and then use this function to change the text. With this method you could add different text to each column link.
Try adding this code to the end of your functions.php file in Appearance > Editor:function change_column_link_text(){ ?> <script> (function($){ $(window).load(function(){ $(".column1").find("a.av-screen-reader-only").text("my new link text"); $(".column2").find("a.av-screen-reader-only").text("more new link text"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'change_column_link_text');
in this example, change the custom column class .column1 and the text you want it to read: my new link text This example handles two links, but you can add as many as you wish.
Best regards,
MikeDecember 5, 2018 at 7:16 pm #1041345That worked like a charm, thanks Mike!
Are you guys adding this as a feature to a future release of enfold?December 6, 2018 at 3:58 am #1041465Hi,
I’m not sure exactly, there are quite a few changes in the works right now. The thought behind this text is that it is there for the screen readers, that is why the class for the link is “av-screen-reader-only” Glad to hear that this worked out for you, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeDecember 6, 2018 at 1:26 pm #1041636Hi Mike,
I figured it was only for screen readers by looking at the name of the class you mentioned. However, from an SEO standpoint this is still a critical issue, as you can imagine. If someone’s really serious about their SEO they pretty much can’t use column links on important pages.
–
The workaround does work perfectly fine and I’ll keep using it for now, but being able to set anchor text for the column links is definitely a feature worth adding, at least in the long run, in my opinion.
–
And yes, you may close this thread. Thank you again for your help :)December 6, 2018 at 2:46 pm #1041676Hi,
Thank you, I will forward this suggestion.
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Column Links: BIG problem regarding anchor texts & SEO’ is closed to new replies.