Need javascript or other pop-up warning message for external links in slider

Discussion in 'Figero WordPress Theme' started by scampisi, Jan 11, 2015.

  1. scampisi

    scampisi New Member

    Joined:
    Dec 16, 2012
    Messages:
    21
    Likes Received:
    1
    I am using this Figero theme for a website that is for a Federal Credit Union and one of the guidelines they have to follow is that they must have a warning whenever they are clicking on a link that takes them to an external site. Throughout the site, I have a used a javascript code to do a pop-up warning message onclick. However, I am wanting to do some external links on the sliders that appear on the homepage. I have a place to put in a URL, but it doesn't seem to parse any code that i insert. Is there a way to run a javascript pop-up warning on links in the sliders?

    You can see the pop-up warning that I am doing if you visit this page and click on "Click to Order Checks".

    thanks for any help you can provide.

    Steve
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello Steve !

    Please add below code in custom.js
    Appearance =>Theme Editor(wp editor plugin)=>js folder=>custom.js
    Code:
    jQuery(function() {   
        jQuery('.btn-1').click(function(){
          alert("hello !");
         
        });
      });
    This is for first button you can change text and do same for second button.

    Thanks & Regards
    Pramod
     
  3. scampisi

    scampisi New Member

    Joined:
    Dec 16, 2012
    Messages:
    21
    Likes Received:
    1
    I couldn't find exactly where you are telling me to put that code. When i click in "Appearance", I don't have a "Theme Editor" link, button or tab. I see "Theme Options", but it doesn't give me a js folder.

    I went into my js folder on my site, though, and manually added the code to the "custom.js" file, but this had no effect on the problem. I put the code in for all for buttons, but still no reaction from the site. Is there someplace in the editor that allows me to see that folder and file?
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    For this you have to install wp editor plugin.
    After this you will be enable for jquery editing.

    Thanks & Regards
    Pramod
     
  5. scampisi

    scampisi New Member

    Joined:
    Dec 16, 2012
    Messages:
    21
    Likes Received:
    1
    I have installed the WP Editor plugin and i see the additions i had already made to custom.js. I removed them and put in just one for the 2nd button on the site. Nothing is working. It doesn't give any alert or anything when you click on the slider.

    My site is http://dominofcu.com

    I have sent you my admin and login to repair another problem (IMG tag not working in footer) if you want to log in and look at the problem. I really need to get this fixed if you can do anything to help me. thanks so much

    Steve
     
  6. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    OK ! i will try and reply you soon.

    Thanks & Regards
    Pramod
     
  7. scampisi

    scampisi New Member

    Joined:
    Dec 16, 2012
    Messages:
    21
    Likes Received:
    1
    Hello? Do you have any solutions yet?
     
  8. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    I have taken try but no luck for required result.
    You have to search plugin available in wordpress.com which have the required functionality.
    I will also work on this .
    If found any solution i will reply you.

    Thanks & Regards
    Pramod
     

Share This Page