Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15815

    hi, in portfolio items when you click on projects URL it opens on the same page i would like hyperlinks open on new tab

    #89121

    Hi,

    I am not sure that can be done without rewriting a good portion of the theme since that is the part of the design.. It’s not easy to separate the two since they are Siamese twins just about.

    Thanks,

    Nick

    #89122

    I think it would be a good idea to implement because once they navigate to another link you have lost the visitor.

    #89123

    If the url is an external url you can use following js code – add it to js/avia.js (at the very top after the document.ready function):

    jQuery(".portfolio-entry .entry-content a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
    }).attr('target', '_blank');

    #89124

    hi i added like below, but still didnt change

    /* this prevents dom flickering, needs to be outside of dom.ready event: */
    document.documentElement.className += 'js_active';
    /*end dom flickering =) */

    //global path: avia_framework_globals.installedAt

    jQuery.noConflict();
    jQuery(document).ready(function(){
    jQuery(".portfolio-entry .entry-content a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
    }).attr('target', '_blank');

    //activates the slideshow
    if(jQuery.fn.avia_ajax_portfolio)
    jQuery('.ajax_portfolio_container').avia_ajax_portfolio();

    // actiavte portfolio sorting
    if(jQuery.fn.avia_iso_sort)
    jQuery('.portfolio-sort-container').avia_iso_sort();

    // improves comment forms
    if(jQuery.fn.kriesi_empty_input)
    jQuery('#s, #search-fail input').kriesi_empty_input();

    // improves menu for mobile devices
    jQuery('.responsive .main_menu ul:eq(0)').mobileMenu({
    switchWidth: 768, //width (in px to switch at)
    topOptionText: jQuery('.main_menu').data('selectname'), //first option text
    indentString: '   ' //string for indenting nested items
    });

    // enhances contact form with ajax capabilities
    if(jQuery.fn.kriesi_ajax_form)
    jQuery('.ajax_form').kriesi_ajax_form();

    //activates the mega menu javascript
    if(jQuery.fn.avia_menu_helper)
    jQuery(".main_menu .menu").avia_menu_helper({modify_position:true});

    //smooth scrooling
    if(jQuery.fn.avia_smoothscroll)
    jQuery('a[href*=#]').avia_smoothscroll();

    //keep ratio of elements
    if(jQuery.fn.avia_ratio)
    jQuery(".avia_keep_ratio").avia_ratio();

    //keep ratio of elements
    if(jQuery.fn.avia_fancy_buttons)
    jQuery(".social_bookmarks li").avia_fancy_buttons({target:'a'});

    #89125

    Hi!

    Can you post a link to your website please. Make sure that avia.js contains the code I posted above.

    Regards,

    Peter

    #89126

    hi

    can i send you in a private mail

    #89127

    Hi,

    I believe Dude will be unavailable for the next few weeks. If you need me (usjahm [at] gmail.com) or one of the other members of the team to take a look, we would be more than happy.

    Thanks,

    Nick

    #89128

    Hi yes if i can have someone please reply me and have a look, Nick i sent you multiple messages about my website ive had no reply adn ended up having to reinstall if someone can assist that would be great thanks

    #89129

    Hi tinavive,

    I think there is a much easier but often overlook way to solve this! Since you are just putting a in a link into the meta field you can give it the _blank attribute outright. So in your Project URL field just use this code instead of text:

    <a href="www.google.com" target="_blank">Google</a>

    Replace http://www.google.com with the actual link and the Google text with the text you want displayed.

    Regards,

    Devin

    #89130

    ok thank youThank you that works great

    #89131

    Hi tinavive,

    Glad that Devin helped you. :)

    Cheers,

    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘hyperlinks open on new tab’ is closed to new replies.