Home Forums Theone WordPress Theme Make portfolio and team items open in new tab.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12037
    holycow77
    Participant
    Purchased
    Expired

    Hi there, is there a way that I can make my portfolio and team items open in a new tab?
    Having to reload the front page constantly is not an intuitive as I’d like.

    Thank you!

    Steve
    http://www.unihillchurch.com.au

    #12038
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi,

    1. Please add target="_blank" for tag <a *** > for 2 files:
    /wp-content/themes/theone/functions/pagebuilder/modules/portfolio.php
    line 479 update as:
    <a target="_blank" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="brick-link brick-link-gray <?php echo $enable_ajax; ?>">
    line497 update as:
    <a target="_blank" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="brick-link <?php echo $enable_ajax; ?>">
    /wp-content/themes/theone/functions/pagebuilder/modules/team.php
    line101
    <a target="_blank" class="team-item-title" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

    2.
    Find: /wp-content/themes/theone/js/custom.theme.js, line 685-690, update as

    $('.moudle .iterlock-caption a, .moudle .tab-content a, .moudle .accordion-inner a, .moudle .blog-item a, .moudle .isotope a, .ux-btn, .moudle .post-carousel-item a, .moudle .caroufredsel_wrapper:not(.portfolio-caroufredsel) a').click(function(){
    					if($(this).is('.brick-link')||$(this).is('.team-item-title')||$(this).is('.lightbox')||$(this).is('.tw-style-a')||$(this).is('.lightbox-item')){}else if ( jQuery(this).attr('target') == '_blank') {}else if($(this).is('.liquid_list_image')){}else if($(this).is('.ajax-permalink')){}else if(/#/.test(this.href)){}else{
    						themeData.fnPageLoadingEvent($(this));
    						return false;
    					}
    				});
    #13217
    holycow77
    Participant
    Purchased
    Expired

    Hi there,
    This was working for a while, but has now stopped working again.

    Could you please advise how to fix as it’s very frustrating to have to reload the home page over and over.

    Thank you.
    Steve

    #13218
    holycow77
    Participant
    Purchased
    Expired

    Never mind… I’ve worked it out. Cheers,

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.