Forum Replies Created
-
AuthorPosts
-
December 8, 2014 at 11:54 am in reply to: Pop-up when exiting site through external link – Easy Slider #364568
Andy,
Thanks, I’m actually trying to get a pop-up to appear when external links are clicked. Ismael had these codes to make it work:
<a class="external-link" href="http://www.google.com">Click Here</a>
Edit functions.php, add this at the very bottom:function add_custom_script(){ ?> <script> jQuery(window).load(function(){ jQuery('a.external-link').click(function() { alert("You're going to a better place."); }); }); </script> <?php } add_action('wp_head', 'add_custom_script');
But the Easy Slider doesn’t seem to have the option to allow custom CSS in the link box? Did I miss something?
Thanks!
JohnNevermind guys! I figured out what I did pasting it incorrectly! It’s working perfectly. Thanks so much for the help!! Life savers!
– John
Hi Josue,
I’m getting an error: “PHP Parse error: syntax error, unexpected ‘?’ in E:\domains\instaglucose.com\wwwroot\wp-content\themes\enfold\functions.php on line 486”
Put the code through http://pastebin.com/, but still getting the error? Did I add something incorrectly?
Thanks!
JohnThanks Ismael! Got it working for in posts/pages, but still having a little difficulty with the main menu. I’ve gone into the Appearance/Menus tab and made the option for “CSS Classes” available. I’ve put in “external-link” as the class. What am I missing on that end?
Thanks!!
JohnIsmael,
Thanks for the follow-up! This looks like exactly what I need, but upon adding the code to the bottom of the functions.php, I get a syntax error that crashes the site? Here’s a screenshot of where I put it and the lines that are getting errors. Any reason why this would be happening – I’m certainly not an expert with PHP unfortunately.
https://dl.dropboxusercontent.com/u/31251495/functions-error.jpg
Thanks again for the assistance!
– John HaswellJune 16, 2014 at 6:09 pm in reply to: Enfold: Removing the search magnifying glass and adding in the search field #279606I can see that “searchform.php” is where the code is stored, but I’m not a pro at editing PHP and continue to get syntax errors when trying to input anything. I believe I just want to add the text before $icon = av_icon_char(‘search’);
June 16, 2014 at 5:49 pm in reply to: Enfold: Removing the search magnifying glass and adding in the search field #279586Thanks so much Ismael!!
I had one more question question related to this. I wanted to see how it would look with the text “Search” right next to the magnifying glass. Just wanted to give myself another option. What would be the best way to accomplish this?
Best,
JohnProblem solved. It was the images from the media elements. specifically external links were causing the problem for some reason. I resolved this by using a text box under content elements and just adding in an image that way and linking the traditional way. This resolved the extra spacing that was occurring. Not sure why it did this, but in case others have the same problem there is a workaround.
Ok, it’s actually the LINK option within the image elements that is causing it. As soon as I disable the external link, the page loads the right way. How can that be? Why would the external link on an image cause this kind of page load issue?
Ok I’ve found the root of the problem, but not sure of workarounds. I’m using these two pages as test examples:
http://instaglucose-com.web10.prepropagate.com/?page_id=2869 – Footer not working
http://instaglucose-com.web10.prepropagate.com/?page_id=3097 – Footer Working
It looks like the double column format I have in place is causing it. I have a 1/3 column with the red side-bar image/ad in place, and then on the right I have a 2/3 column with the content. The pages that work are void of these, or at least that image element. Even two 1/2 columns side-by-side seem to work ok. Thoughts on how to fix this problem?
Here is another site we’ve worked on that supports the Enfold theme. You can see it is a short content page, but the footer hugs the bottom the way it should.
http://unified-imaging.com/?page_id=1195
Their setups should have been consistent. The headers are the only thing that’s drastically different as far as I know. Any other thoughts??
Devin,
I can definitely do that, but I’m not sure that is the underling issue. All the other interior pages don’t have the slider and I even removed the large background image behind the header, but still had the extra space appear.
Here’s the About page as an example. It just has a few images on it: http://instaglucose-com.web10.prepropagate.com/?page_id=2869
Any other thoughts on what might help?
Thanks!!
Thanks Devin,
Currently the only option under Troubleshoot & advanced settings that is green is “Concatenate output” everything else is grey and not turned on including “Use Google CDN version of jQuery”
Should I turn any of these on for testing?
Thanks
JohnFlikk,
Thanks for the response. I’ve de-activated all plugins and cleared the cache, but still a no go on either of my machines. I also randomly get a fix every once in awhile after a few seconds or minutes passes. It will just click back in place with no space below the socket I have in place. Not sure if there is something else I can do to test what might be affecting it?
Thanks
Thanks Josue – I actually ended up doing a static background and an extended floating .PNG to mimic two images. It seemed to do the trick for this one. Appreciate the follow up though and I’ll do it this way in the future!
Best,
John -
AuthorPosts