Issue with buttons in FooGallery
-
This was from my post in the FooGallery forum (https://www.ads-software.com/support/topic/html-showing-on-buttons-foogallery/#post-15943837):
**********************************************************************
I am using the Pet Care Clinic theme and FooGallery plugin. When opening up an image from the gallery I am getting some of the HTML code showing on the buttons:
<i class=”fa fa-chevron-left”></i> Previous
Next <i class=”fa fa-chevron-right”></i>In other themes the buttons don’t show at all. Any ideas how to fix this without manually editing code? As this will just be overwritten with updates.
**********************************************************************And the fix that hopefully didn’t break anything else:
**********************************************************************
I had a play around with CSS to see if I could hide the element, but it didn’t work.This appears to be to do with the theme “Pet Care Clinic”.
themes/pet-care-clinic/image.php
<div class=”nav-previous”><?php previous_image_link(false, esc_html__(‘<i class=”fa fa-chevron-left”></i> Previous’, ‘pet-care-clinic’)); ?></div>
<div class=”nav-next”><?php next_image_link(false, esc_html__(‘Next <i class=”fa fa-chevron-right”></i>’, ‘pet-care-clinic’)); ?></div>So I had a play around with the HTML inside these PHP tags…
<div class=”nav-previous”><?php previous_image_link(false, esc_html__(‘Previous’, ‘<i class=”fa fa-chevron-left”></i>’, ‘pet-care-clinic’)); ?></div>
<div class=”nav-next”><?php next_image_link(false, esc_html__(‘Next’, ‘<i class=”fa fa-chevron-right”></i>’, ‘pet-care-clinic’)); ?></div>It now appears to be displaying correctly. Hopefully it won’t affect anything elsewhere. Will hit up the creators of the theme.
**********************************************************************It keeps editing the second part of the coding… it should be using the “& lt ;” and “& gt ;” (without spaces) instead of < and > for the i class section.
- The topic ‘Issue with buttons in FooGallery’ is closed to new replies.