Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #222439

    This theme really is great. Thanks for all the support and help.

    I created a full-width masonry gallery on this page: http://dev.tanenbaum.org/news/

    I love what it does but would like it when someone clicks on the image to go to external page that it is linking to but pop up in a new tab or window.

    Is there a way to do with the Custom CSS?

    Is the portfolio a better way to go?

    Thanks so much.

    Bob

    • This topic was modified 10 years, 4 months ago by awsystems.
    #222627

    Hey awsystems!

    Edit config-templatebuider > avia-shortcodes > masonry_entries.php, find this code on line 529:

    $items .= 	"<{$html_tags[0]} class='{$class_string}' $linktitle $markup>";
    

    Replace it with:

    $items .= 	"<{$html_tags[0]} target='_blank' class='{$class_string}' $linktitle $markup>";
    

    Best regards,
    Ismael

    #229015

    is it possible to make a set-up that if a class is set (f.e. extlink) the target is blank and if not the link goes to self ?

    i activated the custom.css by using add_theme_support('avia_template_builder_custom_css'); in functions.php
    so i can give the masonry field a special class.

    btw. because of updates the string is now on line 548

    • This reply was modified 10 years, 3 months ago by Guenni007.
    #229089

    perhaps it will be easier to create a new array for the target but i don’t find it where i can insert it.
    This will be a great thing because the most links of portfolio should be self but in some case it will be nice to have an input field for blank

    #229101

    Hey!

    That would need to be added in as a new feature and isn’t something we could give out through support. If its a must-have feature I would recommend looking into a freelance developer to customize the shortcode php file to add it in and then bug test it to make sure there are no other issues from the change.

    Regards,
    Devin

    #234792

    there is a check for custom link url in the masonry-entries.php on line 727

    
    if(!post_password_required($id)){
    $custom_link = get_post_meta( $id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $id ,'_portfolio_custom_link_url', true) : false;
    if($custom_link) $this->loop[$key]['url'] = $custom_link;
    }
    break;

    is it possible to insert here a target=_blank
    because that will be ok – if there is an external link than open a new window – if not open normal

    #235369

    Hey!

    I think this post: https://kriesi.at/support/topic/portfolio-custom-urllink-setting-open-in-new-window/ will help you.

    Best regards,
    Peter

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