-
AuthorPosts
-
February 12, 2014 at 12:04 am #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, 9 months ago by awsystems.
February 12, 2014 at 9:46 am #222627Hey 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,
IsmaelFebruary 25, 2014 at 2:18 pm #229015is 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, 8 months ago by Guenni007.
February 25, 2014 at 5:33 pm #229089perhaps 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 blankFebruary 25, 2014 at 5:48 pm #229101Hey!
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,
DevinMarch 10, 2014 at 4:46 pm #234792there 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 normalMarch 11, 2014 at 10:56 am #235369Hey!
I think this post: https://kriesi.at/support/topic/portfolio-custom-urllink-setting-open-in-new-window/ will help you.
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.