-
AuthorPosts
-
August 18, 2017 at 12:38 am #840671ErikGuest
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!
ErikAugust 18, 2017 at 1:13 am #840685Hey 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 ShannonAugust 23, 2017 at 1:06 am #842833ErikGuestHi 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();
}
}
ThanksAugust 23, 2017 at 4:53 am #842846Hi,
This javascript should work, but I need to know how are you adding this custom script.
Best regards,
John TorvikAugust 24, 2017 at 6:23 pm #843646ErikGuestHi.
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)August 25, 2017 at 9:57 pm #844194Hi,
Did you put the js code inside the script tag?
<script>your js code here</script>
Best regards,
NikkoAugust 29, 2017 at 8:31 pm #845440ErikGuestYes, I am putting the js in script tags
August 29, 2017 at 9:28 pm #845451Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.