• Hello everyone,

    i want gallery directly to open when i click on certain project not that it opens in a new page if this is possible and if you understand what i mean? (down at OUR WORK)

    Regards,
    Jan

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello there,

    To accomplish it, try doing these steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    (function($){
    
      if( $('.widget_sydney_portfolio').length ) {
    
        $('.widget_sydney_portfolio .project-item').each(function(){
          $(this).find('a').attr('target', '_blank');
        });
    
      }
    
    })(jQuery);
    

    4. Update

    Regards,
    Kharis

    Thread Starter garafolj

    (@garafolj)

    Hello Kharis,

    I did what you said but it doesn’t work, should i have linked my project to a certain page or something else i should do?

    Regards,
    Jan

    Thread Starter garafolj

    (@garafolj)

    + i am using Envira gallery if that helps.

    Regards

    Thread Starter garafolj

    (@garafolj)

    To be more specific if you did not understand:
    I want photos to open like on this page https://knockonthewood.com/gallery/ , but it opens from my main page. Hope i did provide enough info and sorry for spam..

    Regards,
    Jan

    Wow… that’s what I’m trying to do in Sydney’s gallery as well on our not-for-profits website as well. Very interested in finding how to do this.

    Appreciate your time in advance.
    Aprile

    @garafolj,

    > i am using Envira gallery if that helps.

    It isn’t Sydney theme support scope as it isn’t a plugin that we recommend. You should consult to the plugin author. As they’re aware, I believe they’ll be able to help you.

    Aprile,

    Glad to hear that it worked for you.

    Regards,
    Kharis

    Thread Starter garafolj

    (@garafolj)

    Ok how would I do that if we put Envira away, because it sill opens in a new tab, would it be possible that photo just opens on the same page?

    Regards,
    Jan

    PS: check my page to see how it opens now and I put the code in

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Gallery on projects’ is closed to new replies.