-
AuthorPosts
-
September 8, 2014 at 8:24 pm #315330
Hi There,
AMAZING THEME. so impressed with it. Quick question:
I want to have a masonry portfolio grid but I want the images to open up in a Lightbox overtop of the gallery and not above it – how do I get this to work? I have several categories – and the masonry isn’t allowing them. The portfolio grid only opens them above the portfolio and I want them in a Lightbox with the title and excerpt underneath – make sense?
September 9, 2014 at 5:48 am #315618Hey creatiffco!
Thank you for using Enfold.
If you want the masonry overview page opens the image on a lightbox when you click a thumbnail, edit the portfolio item then look for the Overwrite Portfolio Link setting. Set to “Define custom link” then provide a link to the actual image.
Cheers!
IsmaelSeptember 9, 2014 at 2:58 pm #315893Hey Ishmael! Thanks for the response – That works well — but there no way for the masonry to allow the preview text to show it too right? I love the way the grid portfolio had that option but I just didn’t want it to push the other portolfio items to the bottom of the screen, I wanted it to appear on top, thoughts?
- This reply was modified 10 years, 2 months ago by creatiffco.
September 10, 2014 at 7:12 am #316327Hey!
I’m sorry but what do you mean by “Preview Text”? Do you mind if we take a look at your current installation? We would like to inspect it. A screenshot on how you want it to look will help.
Best regards,
IsmaelSeptember 10, 2014 at 2:37 pm #316608Hi!
Thanks for helping me with this, I really REALLY appreciate it.
I want to have a social share option in the excerpt so I have the Masonry portfolio set up, I’ve custom linked (just the first few items) to their own URL link (so they open up in their own light box) but I want to have the excerpt display social sharing icons (facebook, twitter, pinterest) on the rollover. Right now I have it set for excerpt to show on rollover but the code isn’t being picked up.
Here it is: http://www.kidderconnell.com/portfolio/
Help please on how you think I should do this…. I wish the rollover would display the preview text area so that it could display a shortcode, or do you think it will actually work on the excerpt?
I am using this plug-in currently:
https://wordpress.org/plugins/social-sharing-toolkit/screenshots/But I have looked into this one:
http://wordpress.org/plugins/nextgen-facebook/What will work? I would like it to be similar to this website’s home page (except I’d like to keep Enfold’s rollover white bar height)
http://bensasso.com/I hope this makes sense, please let me know if you need anything else!
My best.
September 11, 2014 at 10:59 am #317269Hey!
Honestly, we haven’t tested those plugins but if you’re going for the Social Sharing Toolkit, enable the shortcode then edit the config-templatebuilder > aviashortcodes > masonry_entries.php. Add the social shortcode somewhere on these line of codes starting from line 562:
$items .= "<figcaption class='av-inner-masonry-content site-background'><div class='av-inner-masonry-content-pos'><div class='avia-arrow'></div>".$text_before; if(strpos($this->atts['caption_elements'], 'title') !== false){ $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'id'=>$entry['ID'], 'custom_markup'=>$this->atts['custom_markup'])); $items .= "<h3 class='av-masonry-entry-title entry-title' {$markup}>{$the_title}</h3>"; } if(strpos($this->atts['caption_elements'], 'excerpt') !== false && !empty($content)){ $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$entry['ID'], 'custom_markup'=>$this->atts['custom_markup'])); $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div>"; }
Best regards,
IsmaelSeptember 11, 2014 at 2:54 pm #317412Hey!
Great, thanks. Where do I enter the shortcode in that code? The shortcode is [social_share/]
- This reply was modified 10 years, 2 months ago by creatiffco.
September 12, 2014 at 7:23 am #317893Hi!
If you’re using an excerpt on the masonry element. Look for this line of code:
if(strpos($this->atts['caption_elements'], 'excerpt') !== false && !empty($content)){ $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$entry['ID'], 'custom_markup'=>$this->atts['custom_markup'])); $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div>"; }
Replace it with this:
if(strpos($this->atts['caption_elements'], 'excerpt') !== false && !empty($content)){ $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$entry['ID'], 'custom_markup'=>$this->atts['custom_markup'])); $shortcode = "[social_share/]"; $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$shortcode}{$content}</div>"; }
See if it works.
Regards,
IsmaelSeptember 12, 2014 at 2:25 pm #318125Hi! Thanks for your response. I replaced the code but now all that shows is the shortcode… the actual HTML text… is there a way to code in sharing icons (facebook, twitter and pinterest) in the excerpt?
Thanks for all your help, I really really appreciate it.
Jane
September 15, 2014 at 4:51 pm #319283Can someone reply to my question? :/
September 16, 2014 at 6:46 am #319594Hi!
My bad. Please replace the code with this:
if(strpos($this->atts['caption_elements'], 'excerpt') !== false && !empty($content)){ $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$entry['ID'], 'custom_markup'=>$this->atts['custom_markup'])); $shortcode = do_shortcode('[social_share/]'); $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$shortcode}{$content}</div>"; }
Cheers!
IsmaelSeptember 16, 2014 at 3:42 pm #319935Why is it still not working? http://www.kidderconnell.com/portfolio/ It shouldn’t be this difficult?
September 22, 2014 at 4:05 pm #323096Hi!
The shortocde should be added with whatever the actual shortcode is:
'[social_share/]'
So if that isn’t correct you can change it to whatever is.
Regards,
Devin -
AuthorPosts
- You must be logged in to reply to this topic.