Un-enclosed javascript displayed in excerpt

Home Forums Jevelin Theme Un-enclosed javascript displayed in excerpt

Home Forums Jevelin Theme Un-enclosed javascript displayed in excerpt

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
  • the_excerpt() is displaying un-enclosed javascript. For example:

    https://www.userzoom.com/?s=userzoom

     

    This js is added the the post content field by the section layout element of the builder when the parallax option is selected. It is stored in the db un-enclosed by <script> tags.

     

    Oddly, the_content() encloses the js with <script> tags.

     

    Jevelin Version: 2.4.13

    Updated local dev to Jevelin Version: 2.7.2 and updated Unyson to 2.7.12. Problem remains.

    HI @fbraga,

     

    Sorry to hear of the problem you are having.

     

    To resolve the issue please try adding excerpt text manually in the excerpt field of page where you use parallax option.

     

    Please find more information about it in the following pages.

     

    http://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/

    http://www.wpbeginner.com/glossary/excerpt/

    Best regards,
    Shufflehound team

    That’s a pretty disappointing answer. Why can’t the same filter that’s enclosing the js with the_content() be applied to the_excerpt()?

     

    It strikes me as bad practice to store en-enclosed js in the db.

    Yes we agree with it and hope to fix it soon but it is generated by Unyson plugin that creates parallax effect and not the theme so we can’t resolve it until the plugin developer fixes it in the plugin.

    website: http://www.mihaipuscas.com

    -Same thing here. Unyson 2.7.12. Jevelin 2.7.2

    -post excerpt in both slideshow and individual posts on main blog page is affected

     

    Attachments:
    You must be logged in to view attached files.

    I’ve submitted a PR the Unyson project. Please encourage our friends at Themefuse to accept the PR so this is fixed in the next release.

    https://github.com/ThemeFuse/Unyson-PageBuilder-Extension/pull/107

    Thank you for submitting the PR.

    Your initiative is really appreciated.

    -I’ve contacted unyson about this issue and this is my message and their reply:

     

    My message:

    ” website: http://www.mihaipuscas.com
    -Post excerpt is replaced with un-enclosed javascript. I am using jevelin theme, the developer said the issue comes from unyson.
    -Is there a way to downgrade to an older version ? I am currently on the latest wordpress, jevelin theme and unyson plugin. Are you going to release an update soon ? “

    (after giving temporary credentials)

    Reply:

    “ It is a theme issue, your theme author sent you here without checking what is happening. Issue is in file jevelin/content.php line 163 code: <?php echo wp_trim_words( get_the_content() , ’17’ ); ?> in all elseifs everything is fine it is the_excerpt();. Please contact theme author and tell him to check before sending his clients here. “

     

    -Regarding  your previous comment:— “Yes we agree with it and hope to fix it soon but it is generated by Unyson plugin that creates parallax effect and not the theme so we can’t resolve it until the plugin developer fixes it in the plugin”—   If my issue is different than what you mentioned here then i apologise. But if it is the same then it means the theme needs an update.

     

    -Thanks for your support.  🙂

     

    You can try resolving this by using the attached custom child theme of Jevelin theme that contains above code modifications.

    Attachments:
    You must be logged in to view attached files.

    -I just finished customizing my theme. I don’t want to mess things up. When are you gonna release an update to fix this ? Just saw that update 4.8 doesn’t fix the issue.

    We don’t have any exact ETA of it but we will resolve it soon in the future version of theme.

     

    In the meanwhile you can use attached child theme to resolve it.

    -I manually replaced line 163 from parent theme with the respective line from child theme. It solved the excerpt problem from individual post previews. But for the slider excerpt i had to edit the slider and replace {{content:words:25}} with {{excerpt}} .

    -Now everything looks ok. Thanks for the support.

    Glad you resolved it by manually changing parent theme files.

    The issue is resolved in the below latest version of theme so please update the theme as described here https://support.shufflehound.com/updating-theme/

     


    Please login to access this file

Viewing 15 posts - 1 through 15 (of 15 total)