child themes with peel effect javascript and url's
-
I have a child theme of twenty eleven that I have been working on and want to place a peel effect into it. One of the problems I found working on javascript was that calling the theme template gets me twenty eleven instead of my child theme folder. I had to sweep through a couple of websites to find the solution. So I’m posting it here for others to reference:
<?php echo (dirname(get_bloginfo(‘stylesheet_url’))).’folder-inside-child-theme/’; ?>
Now the problem is that I have javascript being called for this peel effect hongkiat.com/blog/create-a-peel-away-effect-on-website-how-to/ js file.
Things to edit in the js file:
jaaspeel.ad_url = escape(‘https://www.google.com’);
jaaspeel.small_path = ‘https://www.hongkiat.com/wp-content/themes/hongkiatdotcom/peel/small.swf’;
jaaspeel.small_image = escape(‘https://www.hongkiat.com/wp-content/themes/hongkiatdotcom/peel/small.jpg’);
jaaspeel.big_path = ‘https://www.hongkiat.com/wp-content/themes/hongkiatdotcom/peel/large.swf’;
jaaspeel.big_image = escape(‘https://www.hongkiat.com/wp-content/themes/hongkiatdotcom/peel/large.jpg’);Is there a way to make the javascript call automatic? So when I copy the theme to another site it will just call the template directory instead of typing it into the js file and only the peel link will need to be changed.
- The topic ‘child themes with peel effect javascript and url's’ is closed to new replies.