Tagged: hotspots
-
AuthorPosts
-
June 19, 2017 at 6:05 pm #809893
I’m using WordPress 4.8 with Enfold theme 4.0.7. It seems this problem has been addressed before, but I can see that it hasn’t been fixed according to the changelog 2015 March 24th – Version 3.1.2. I decided to check HTML validation https://validator.w3.org knowing there were going to be errors, but wasn’t expecting to see so many “open” paragraph tags. It seems there continue to be paragraph tags inserted into div.av-hotspot-fallback-tooltip-inner:
<div class='av-hotspot-fallback-tooltip'> <div class='av-hotspot-fallback-tooltip-count'>1 <div class='avia-arrow'></div> </div> <div class='av-hotspot-fallback-tooltip-inner clearfix'> </p> <!-- closing paragraph --> <h4 class="hotspot_title">Absorber Plate</h4> <p>Utilizing a state-of-the-art ultrasound weld, copper fins and risers provide superior thermal connectivity between the fins and risers. Revolutionary coating is black chrome on nickel, producing a premium selective surface with maximum efficiency for solar energy use.</p> <p>Absorptivity = 0.95<br class="break" />Emissivity = 0.12</p> <p><!-- opening paragraph --> </div> </div> <div class='av-hotspot-fallback-tooltip'> <div class='av-hotspot-fallback-tooltip-count'>2 <div class='avia-arrow'></div> </div> <div class='av-hotspot-fallback-tooltip-inner clearfix'> </p><!-- closing paragraph --> <h4 class="hotspot_title">Tubing Grid</h4> <p>½” copper risers are brazed to 1” copper mainfolds for optimal flow distribution.</p> <p><!-- opening paragraph --> </div> </div>
Those are two div blocks from viewing source that clearly show paragraph tags being inserted automatically. I can’t stand how WordPress automatically inserts paragraph tags so I add the following to the functions.php file in enfold-child:
remove_filter( 'the_content', 'wpautop' ); remove_filter('the_excerpt', 'wpautop');
Is there a filter that will do the same for Avia framework? In the file /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/image_hotspots.php I have found ShortcodeHelper::avia_apply_autop($content) and tried changing it to ShortcodeHelper::avia_remove_autop($content), but it doesn’t seem to be working. I’m trying to override the file with a copy of image_hotspots.php in the enfold-child folder like so: /wp-content/themes/enfold-child/config-templatebuilder/avia-shortcodes/image-hotspots.php. I know overriding files in the child theme’s folder can be tricky if they’re not in the correct path so maybe I don”t have it setup correctly??? Otherwise any solution to fix this issue would be greatly appreciated.
June 22, 2017 at 9:54 am #811412Hey armortech,
Thank you for using Enfold.
Is it working if you modify the file in the parent theme folder? If you want to override the shortcode file in the child theme, please refer to this link.
Best regards,
IsmaelJune 23, 2017 at 1:38 pm #812108Yes, it does work by modifying the file in the parent theme folder. Still wouldn’t work by adding the avia_load_shortcodes filter though. Just didn’t want to have to modify the core file since I’ll have to change it every time there’s a theme update.
June 26, 2017 at 6:33 am #812891Hi,
Thank you for the update. I can’t see the unwanted paragraph tags in the fallback tooltip markup.
<div class="av-hotspot-fallback-tooltip" data-trid="737"> <div class="av-hotspot-fallback-tooltip-count" data-trid="738">1 <div class="avia-arrow" data-trid="739"></div> </div> <div class="av-hotspot-fallback-tooltip-inner clearfix" data-trid="740"> <h4 class="hotspot_title" data-trid="741">Absorber Plate</h4> <p data-trid="742">Utilizing a state-of-the-art ultrasound weld, copper fins and risers provide superior thermal connectivity between the fins and risers. Revolutionary coating is black chrome on nickel, producing a premium selective surface with maximum efficiency for solar energy use.</p> <p data-trid="743">Absorptivity = 0.95<br class="break" data-trid="744">Emissivity = 0.12</p> </div> </div>
Best regards,
IsmaelJune 26, 2017 at 2:20 pm #813066That’s because I modified the file in the parent theme folder. I can change it back so you can see and maybe we can find a resolution without editing the core file.
- This reply was modified 7 years, 6 months ago by armortech.
June 26, 2017 at 2:37 pm #813074Well, it appears the override is working which is fantastic! I changed the core file back and the paragraph tags still aren’t showing with the override in place. Must have still been cached even after clearing it about 20 times, but as long as it works I’m good with it!
-
AuthorPosts
- You must be logged in to reply to this topic.