open a slide in anew window

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart Themeopen a slide in anew window

This topic has been marked as resolved.

I have a slide with an external link, i want it to open in a new window.
can you tell me what i should be putting in the URL box to achieve this pls.

P.S. if not in there, can you tell me how i can do this , just for a single slide out of 3

 GWP
January 15, 2016 at 4:16 pm #44401
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
January 19, 2016 at 12:21 pm #44446

HI Guys
That didnt work.
Maybe i didnt explain it very well, its one of the intro slides/images.
Thanks :)

P.S. I didnt see any change in the layout, was i supposed to see “New Window” options as per the banner section in admin?

 GWP
January 19, 2016 at 1:05 pm #44454

Hi,

You need to change (from the above code) the number in:

:nth-child(3)

Where the number = order of the slide.

BR,
ThemeBurn team

January 19, 2016 at 1:47 pm #44466

HI guys.
I have done that (it was slide 3 in first place)
but it still doesn’t work ?

here is bottom part of common.js


    categories_resize();

    var previousOrientation = 0;
    var checkOrientation = function(){
        if(window.orientation !== previousOrientation){
            previousOrientation = window.orientation;
        }
    };

    if (!$.browser.msie || parseInt($.browser.version, 10) > 8) {
        $(window).resize(categories_resize);
        $(window).bind('orientationchange', categories_resize);
    }
  }

});
$(document).ready(function() {
  $('#intro').find('.slideItem:nth-child(3) a').bind('click', function(e) {
      var url = $(this).attr('href');

      e.preventDefault();
      window.open(url, '_blank');
  });
});

 GWP
January 21, 2016 at 12:18 pm #44494

Hi,

It seems that when you have copied our code, your text editor tool have damaged it (compare both codes).

You need to use some basic text editor and not any visual one.

BR,
ThemeBurn team

February 8, 2016 at 10:06 am #44741

thanks guys, dont know how that happened. i always use a basic text editor (PFE)
all working now :)

 GWP
February 8, 2016 at 11:45 am #44759

Glad everything has been sorted out.

BR,
ThemeBurn team

February 8, 2016 at 11:53 am #44761
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.