Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #840671
    Erik
    Guest

    I’m thinking of using your template in combination with Woocommerce for an Ecommerce site. A friend uses Enfold with his site and we were trying to use Javascript to run a setTimeout and we couldn’t get it to run.

    The Color Section block gives you an section ID. Will Color Section/Code block run JQuery or Javascript normally? Do I just put the JS code in script tags?

    Thank you!
    Erik

    #840685

    Hey Erik ,

    Yes the code block should activate the script. Make sure you use the script tags. You can also insert it directly into functions.php if need be.

    Best regards,
    Jordan Shannon

    #842833
    Erik
    Guest

    Hi Jordan

    Shouldn’t this script work? I’m doing a #support {display: none}; in Enfold General Styling then trying to display an ID from a Color Section after a page loads.
    if (window.location.href.indexOf(“element”) > -1) {
    function elementTest() {
    document.getElementById(“support”).style.display = “block”;
    elementTest();
    }
    }
    Thanks

    #842846

    Hi,

    This javascript should work, but I need to know how are you adding this custom script.

    Best regards,
    John Torvik

    #843646
    Erik
    Guest

    Hi.

    I’m adding in a code block to a page that I’ve display: none from an id that I created in the color section,.

    Its ‘Color Section: Support’ (Inside the Color Section: Support is )
    ‘Blog Posts’ (that I’m trying to display)
    ‘Code Block’ (where the Javascript is trying to display the not displayed id)

    #844194

    Hi,

    Did you put the js code inside the script tag?

    <script>your js code here</script>

    Best regards,
    Nikko

    #845440
    Erik
    Guest

    Yes, I am putting the js in script tags

    #845451

    Hi,

    Thanks for contacting us!

    We would like to inform you that we only provide support to our registered users.

    You can register to our support forum here – https://kriesi.at/support/register/ and then start a new thread under Enfold sub forum – https://kriesi.at/support/forum/enfold/#new-post.

    Please make sure to elaborate on the issue you are having/changes you would like to make on your thread. If you would like to include screenshots, you can upload them on http://imgur.com or Dropbox public folder and attach the links in your posts :)

    Best regards,
    Yigit

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