• Resolved slm800

    (@slm800)


    So I read through the triggers documentation and see the options for supposedly opening a popup, but I currently use the Customizr theme on my website that I am trying to link the main slider on the front page to the popup, however the option for adding a link to the slider is currently only using http. This is the code I have for linking.

    add_action('wp_head' , 'link_slide_caption');
    function link_slide_caption() {
        //wraps the slider caption in the same link as the slide link
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function () {
                ! function ($) {
                    //prevents js conflicts
                    "use strict";
     
                    $( '[id^=customizr-slider] .carousel-caption' ).each(function( index ) {
                      var link = $( this ).parent().find('a').attr('href');
                      $(this).wrap('<a href="'+link+'"></a>');
                    });
                }(window.jQuery)
            });
        </script>
        <?php
    }

    I know this is sort of a crossover from the theme support and popover support, but I had to deactivate and delete the plugin for now unless someone can advise me as to how I can get it working on my website. I can’t currently add any sort of css, shortcodes or even html tags into the link field in my theme customization.

    Would anyone be willing to assist and advise if and how I could edit the above code to be able to use your plugin? I’d be happy to use it as it appeared to do the job and give it a good rating if I can just get it up and running! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @slm800 – Probably can give you a few. As is you simply need to use Click Triggers: method #3 for your slide links.

    Hope that helps.

    Thread Starter slm800

    (@slm800)

    Thanks, but I can’t use option #3 either. The only option I have in my theme and to add a link to my slider is an http link. The field where I input a link will not accept html so I can’t use the “a href” tag. Even just putting basic text in the field changes it to put an http in front of it when I save. I also tried to enter the popmake link into the php that I pasted above but that didn’t work either since unless I have something inserted in the fields on my media page, the slider doesn’t link at all. I’ve attached a screenshot. Hoping someone can help with how to modify the code above so I can enter html or the class into the link field.

    Slider Screen

    • This reply was modified 8 years, 5 months ago by slm800.
    Plugin Author Daniel Iser

    (@danieliser)

    @slm800 – I think you misunderstood. Method 3 is a standard link. You simply insert this for your link #popmake-123 where 123 is your Popups ID #. That method was created specifically for your use case. I.e. Buttons or elements that only accept a link.

    Hope that clarifies.

    Thread Starter slm800

    (@slm800)

    Sorry about that, I guess I did misunderstand. In all my years, Ive never seen a link work that way LOL I have it working now so thanks again. It’s a great popup, will definitely leave a good review!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issues with being able to call popup’ is closed to new replies.