-
AuthorPosts
-
March 30, 2018 at 11:19 am #935248
Hello!
I am trying to add a text fade out with a read more link effect to an Iconbox. I found this which works nicely for what I want to do but I haven’t been able to make it work with Enfold.
Here’s what I’ve tried:
– I’ve uploaded the Javascript file to the theme directory (a child theme) and then added this to said child theme’s functions.php:
wp_enqueue_script( 'textfadereadmore', get_template_directory_uri() . '/textfadereadmore.js', array(jquery), true );
– I have added the CSS part in the Quick CSS box of the child theme’s configuration
– In the Iconbox content, HTML tab, I have enclosed the text within a div tag with its corresponding class,<div class="sidebar-box">...</div>
, with<p class="read-more"><a href="#" class="button">Read More</a></p>
at the end before closing the div tagThe fade out effect seems to work fine, and the text is cut with a “Read more” link appearing in place, but when I click on it the text doesn’t expand.
I tried changing the name of the variables, in case there was a conflict with the Enfold code, but it’s still not working.
Any idea of what might be the issue?Thank you in advance!
_redgeApril 2, 2018 at 4:16 am #935881Hey redgewho,
Thank you for using Enfold.
Please create a test page with the modification and provide the login credentials in the private field. We would like to check it. Make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelApril 3, 2018 at 3:43 pm #936620Hi Ismael,
I’ve created the test page, the info is in the private field.
It’s in Spanish, so if you need to change the language to English or something else go right ahead.Thank you!
April 4, 2018 at 6:24 am #936942Hi,
Thank you for the info. We added the script in the functions.php file directly. Please remove browser cache or do a hard refresh.
Best regards,
IsmaelApril 4, 2018 at 10:19 am #937055Hey :)
Thanks a lot for the help. It’s still not working completely right, though.
Before, when I clicked on the “read more” link, it sent me to the top of the page and the iconboxes didn’t change at all. Now the “read more” button disappears and the “fade out” effect turns to regular text, but it doesn’t expand to its real height so I can’t read the whole text. Any idea why that might be?Thank you again!
April 5, 2018 at 10:47 pm #937926Hi,
It seems that there is a conflict with something else.
Please do consider to check with a freelancer who will be more helpful with that as it is outside from our Support Policy.Thank you
Best regards,
BasilisApril 7, 2018 at 12:34 pm #938600Are you sure it should be considered outside your Support Policy? I don’t mean to be annoying but the script works fine on its own, and it is apparently a conflict with your theme that’s making it not work.
April 9, 2018 at 3:08 pm #939253Hi,
We are very sorry for the confusion. Please check the page again because we updated the script. Don’t forget to purge the cache.
Best regards,
IsmaelMay 8, 2018 at 12:16 pm #953325This would be a very nice feature to have in the theme btw ^_^
May 9, 2018 at 7:37 am #953731 -
AuthorPosts
- You must be logged in to reply to this topic.