- Posts: 32
COMMUNITY FORUM
2.8 meta tags
- Third Sun Productions
-
Topic Author
- Offline
- Junior Member
I'm not sure if this is a K2 issue, or a Zengrid issue, but the latest update to K2 seems to have changed how it generates automatic meta data and has a conflict with the shortcode markup. The generated HTML does not get stripped and as result something like this appears in source:
<meta property="og:description" content="<div class="zen-row no-row-margin clearfix"><div class="zg-col zg-col-6">
This breaks the site layout as it leaves open div tags and meta tags
This never happened with previous versions of K2.
I did try re-ordering the K2 and Zen Shortcode plugins - it changed things, but didn't fix them. Can see here: thirdsundemo.com/test-item
I have a lot of sites using the Zengrid shortcode AND K2 so this presents a big issue for us. Any ideas?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Third Sun Productions
-
Topic Author
- Offline
- Junior Member
- Posts: 32
I can resolve this by manually setting the meta description - or if there are enough characters before the shortcodes, but still presents an issue and I'm holding off upgrading sites as I'm not sure what will happen with other shortcodes or plugins.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Third Sun Productions
-
Topic Author
- Offline
- Junior Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
All tags are stripped in K2's metatags github.com/getk2/k2/blob/master/components/com_k2/views/item/view.html.php#L593
So I think you need to address this issue to the extension's developers.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
jmp.sh/8hV4cNM
Please Log in or Create an account to join the conversation.
- Third Sun Productions
-
Topic Author
- Offline
- Junior Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
K2 properly strips all HTML tags, so the issue might be related to when these plugins are being executed.
Please Log in or Create an account to join the conversation.
- Christian Rieger
-
- Offline
- New Member
- Posts: 12
I have the same problem i.e. on this site:
www.mathelike.de/klausuren-q11-q12/klausuren-q12-1/klausur-q12-1-001/loesung-aufgabe-1.html
Until there's a solution is it possible to reinstall v2.7.1 and where to get it?
Best regards
Christian
Please Log in or Create an account to join the conversation.
- Third Sun Productions
-
Topic Author
- Offline
- Junior Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Christian Rieger
-
- Offline
- New Member
- Posts: 12
You're right, meanwhile I did it this way.
Please Log in or Create an account to join the conversation.
- Christian Rieger
-
- Offline
- New Member
- Posts: 12
Thank you!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Keep us informed :)
Please Log in or Create an account to join the conversation.