This thread is resolved. Here is a description of the problem and solution.
Problem:
Hi, I am using WPML and also the WPML Sticky Links Plugin. In the blog posts, pages, etc. everything works fine. When I set an internal link like myblog.com/blog-post, it's converted to something like a dynamic link that looks like myblog.com/?p=16214 in the backend. Correctly, the front end shows the real link. So far, so good...
However, when I use the page builder or some elements from my theme (Uncode), for every internal link that I create within that element (for example blocks, footer, and others), the dynamic links don't change on the front end. Thus, I see links like myblog.com/?p=16214 on my blog that don't look good and are probably not good for SEO. You can see that problem in my footer here: https://homeiswhereyourbagis.com/
How can this be fixed? I believe this must be some issue with WPML Sticky Links, because when I deactivate this plugin, the internal links are fine in my footer or other theme-specific
Solution:
I was able to solve this problem with the code that you provided on this page:
https://wpml.org/documentation/getting-started-guide/sticky-links/
With the code
if ( class_exists( 'WPML_Sticky_Links' ) ) {
global $WPML_Sticky_Links;
add_filter( 'do_shortcode_tag', [ $WPML_Sticky_Links, 'show_permalinks' ], 0 );
}
it was solved.
Relevant Documentation:
https://wpml.org/documentation/getting-started-guide/sticky-links/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 2 voices.
Last updated by 10 months, 1 week ago.
Assisted by: Lauren.