-
AuthorPosts
-
August 8, 2018 at 4:17 pm #995036
I use the sumo plugin and their page tracking has worked for years, but all of the sudden it has stopped working in the past few months. I have contacted sumo support and they say the issue is it is:
mistaking an article on your page as your main container. Sumo article detection will sometimes return “False positives” and flag something as an article, even if it isn’t. When this occurs we recommend you do the following:
They said the problem is specifically with this element on the pages:
<div class="avia_textblock av_inherit_color" style="font-size:20px; color:#e77519; " itemprop="text">
and that I need to add the class aside as such:
<div class="avia_textblock av_inherit_color aside" style="font-size:20px; color:#e77519; " itemprop="text">
This problem seems nearly identical to this other support post I found here: https://kriesi.at/support/topic/sumome-not-tracking-full-page/
Except that problem was with the elementav-content-full
and my problem is with the elementavia_textblock
so the solution in the other thread does not work for me by editing the functions.php file.Can you please help and advise what theme file I could change to add the
aside
class to those elements so that the plugin works correctly?Thanks!
August 9, 2018 at 5:01 am #995225Hey jasaunders,
If you only need to add that aside class, then you can check the Show element options for developers under Enfold->Layout Builder. You should then be able to add that class to the element in question.
Best regards,
RikardAugust 9, 2018 at 5:01 pm #995611Thank you, however this problem affects nearly every page and all the
avia_textblock
elements on the pages. Rather than me hunt them all down and manually insert an additional class 100 times, is there a way to insert an additional class for theavia_textblock
element automatically across the whole site?August 10, 2018 at 3:38 pm #996022Hi,
Can we take a look at the pages with the issue? Maybe, we can create a script to automatically apply the “aside” class attribute to the text blocks.
Best regards,
IsmaelAugust 10, 2018 at 3:51 pm #996034Hi Ismael,
Sure, links provided in private content area that are all having this problem. Thanks!August 11, 2018 at 12:31 pm #996276Hi,
Yes that’s possible. Please add following code to bottom of Functions.php file in Appearance > Editor to automatically apply the aside class to all textblock elements
add_filter('avf_template_builder_shortcode_meta', 'avia_filter_texblock_classes', 10, 4); function avia_filter_texblock_classes($meta, $atts, $content, $shortcodename) { if($shortcodename != 'av_textblock') return $meta; if(!empty($meta['custom_class'])) { $meta['custom_class'] .= ' aside'; } else { $meta['custom_class'] = 'aside'; } return $meta; }
Best regards,
Dude -
AuthorPosts
- You must be logged in to reply to this topic.