Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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 tag

    The 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!
    _redge

    #935881

    Hey 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,
    Ismael

    #936620

    Hi 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!

    #936942

    Hi,

    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,
    Ismael

    #937055

    Hey :)

    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!

    #937926

    Hi,

    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,
    Basilis

    #938600

    Are 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.

    #939253

    Hi,

    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,
    Ismael

    #953325

    This would be a very nice feature to have in the theme btw ^_^

    #953731

    Hi joax,

    Thanks for the feedback, we might include this in the theme at some point.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.