-
AuthorPosts
-
October 7, 2014 at 10:56 am #120665
Hello
I’ve been confused about the differences between a gallery and a portfolio. I’ve not been able to find this spelled out anywhere: when it’s most appropriate to use one or the other. I want to display a gallery of images in a grid on a site, with a small amount of information when you click on the image – so I’m guessing I need to create a gallery. However there is no Create Gallery option under Media on the dashboard, as shown in the video. Why would that be? What do I need to do?
I’m using the Renew child theme version 1.0.0 and WordPress 4.0
Thank you very much
Rob
October 7, 2014 at 8:27 pm #120990Hey there,
If that is the case, I recommend that you use Portfolio. A gallery is only for images only. If you want to put some information, you will need the portfolio. Please see http://theme.co/x/member/kb/portfolios/ on how to setup a portfolio. Also see http://theme.co/x/member/kb/meta-options-portfolio-items/ for a walkthrough on Portfolio items.
Thanks.
October 8, 2014 at 2:34 am #121128Thanks!
October 8, 2014 at 10:41 am #121385You’re welcome! 🙂
February 25, 2015 at 3:35 am #214727I want to add to this instead of starting a new thread because I can’t be the only one entirely frustrated with WP’s confusing presentation of Galleries vs. Portfolios. I have had a wordpress for years now and I have yet to be able to understand WP galleries vs. portfolios and I find myself frustrated that I can’t achieve the look that I want.
I guess I’ll try to explain what I want first. I want a grid on a page. Let’s say 6 images. Each image in the grid has hover-over text representing the subject of the gallery/portfolio. Babies, toddlers, kids, teens, families, maternity. When the visitor clicks on babies a lightbox pops up and they can scroll through the images of the babies from this same page. But they never are forced onto an additional page where all of the images in that gallery/portfolio are listed, or thumbnail or previewed in anyway. I don’t want any text. No title, no excerpts, nothing and to top it off, I don’t want Google to punish me for this as some sort of SEO crime.
I’ve asked for this from various themes before and the answer has always been “no can do”, but I’m going to give it one last shot with you guys. I know it’s not a Theme issue, but a WP issue, still, is there anyway to get this?
If not, I still don’t understand portfolios vs. galleries. I don’t know what to name them, how to tell the difference between them. If categories for portfolios are different than categories for blog posts.
The only look I really like is the lightbox, but it bothers my eye to have to click on a grid block to be taken to a second page only to click again to fire up the lightbox. Does that make sense?
I want nice large photos (just shy of full width), very minimal.
I was thinking of using the slider for this, but I worry that this will be a slow user experience. Does the slider slow things down quite a bit more?
Edited to add that I have watched your videos and read up on this, but it just goes straight over my head. I still don’t get it. It feels like Algebra in 7th grade.
Thank you!
~TrishFebruary 25, 2015 at 9:03 am #214958Hi Trish,
Thank you for writing in!
Portfolio and gallery are different from each other. Portfolio is a custom post type in WordPress just like normal blog posts while gallery is simply images added to your static or posts pages.
In your case, I’d advise using portfolio, but as you said you want to open them in a lightbox instead of a new page. This isn’t possible out of the box but can be achieved by some custom development. To achieve it, review this article: https://theme.co/x/member/forums/topic/portfolio-lightbox-2/page/2/#post-200414
Hope this helps. 🙂
Thank you.
February 25, 2015 at 6:32 pm #215394Thank you! I’ll check it out now.
February 26, 2015 at 12:35 am #215598You’re welcome. Let us know how it goes.
Thanks.
February 26, 2015 at 2:03 am #215632HI there. Me again. I think I might sorta kinda maybe get it just enough to screw everything up.
First of all, I still can’t figure out how to get the lightbox to work. So before I mess everything up, will you tell me where I’m about to go wrong?
1. switch over to my child theme
2. Upload images to the demo portfolio
3. Enter the php code copied below. But where to I put this code? I only see css and javascript code boxes.
4. Somewhere I’ve gone wrong, I know it. The lightbox short code? I’ve watched the video, but I still don’t know where to put that code and how to draw the images I want to it.I’m sorry. Coding is not my thing. I’m happy to learn it, but I’m just letting you know you’re talking to a coding kindergartener.
thanks in advance.
// Liking Portfolio Items to Featured Image URL to Open Them in a Lightbox
// =============================================================================add_filter( ‘post_type_link’, ‘x_remap_portfolio_to_page’, 10, 4);
function x_remap_portfolio_to_page($post_link, $post, $leavename, $sample) {if ( ‘x-portfolio’ == $post->post_type ) {
return $image_link = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
}return $post_link;
}add_action(‘wp_footer’, ‘enqueue_lightbox_script’);
function enqueue_lightbox_script() {
echo ‘
<script type=”text/javascript” src=”‘ . home_url() . ‘/wp-content/plugins/x-shortcodes/js/dist/site/vendor-ilightbox.min.js”></script>
<script>jQuery(document).ready(function($) {
$(\’.page-template-template-layout-portfolio .entry-featured .entry-thumb\’).click(function(e) {
e.preventDefault();
});
});
jQuery(document).ready(function(){jQuery(“.x-portfolio .entry-title a”).iLightBox({skin: “light”,linkId: “gallery-image”,overlay: {opacity: 0.875,blur: true},styles: {prevScale: 0.75,prevOpacity: 0.75,nextScale: 0.75,nextOpacity: 0.75},path: “horizontal”,controls: {thumbnail: false}});});
</script>’;
}February 26, 2015 at 3:31 am #215662Ok, I’m adding to this. I found this link and I think Olsin is doing what I want to do. I *think*.
https://theme.co/x/member/forums/topic/use-a-single-image-to-open-a-lightbox-gallery-of-multiple-images/So I followed directions, but I’m sure I’m missing something in the code. I don’t think I understand exactly “image class”. Also, my images have titles already. Do I have to go back and copy each url and title from each photo? That seems like a lot of work for the number of images I eventually would like.
Additionally, just an FYI, I had the hardest time finding “image shortcode” in the help section. The search just kept bringing me to the lightbox shortcake, but that video tells me to refer to the “image short code” video. I did finally find it, but you might want to take a look and make that video better searchable.
I’m posting my login information and link to the messed up page below. Thank you!
February 26, 2015 at 3:37 am #215671This reply has been marked as private.February 26, 2015 at 10:59 am #215880Hi Trish,
#1: First, in regards to the portfolio items to open in a lightbox: I’m seeing that you haven’t yet activated your child theme. Please activate it under Appearance > Themes (see: http://prntscr.com/6a443s).
After that, simply add the code provided in your child theme’s functions.php file. You can access it under Appearance > Editor (see: http://prntscr.com/6a44m6). But it is advisable to make template changes using FTP.
#2: In regards to the multiple lightbox images in a lightbox. This can only be possible if you add those images on your page too. You can review our video walkthrough on [lightbox] and [image] shortcodes.
If you wish to show multiple images in a lightbox without showing them on your page, it could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
Answers to your other questions:
1. Masonry gallery: This is only possible for blog or portfolio pages. However, if you wish to you show gallery items/images in a grid layout, you can use [column] or [block_grid] shortcodes with multiple columns. Then insert your images separately in each of the column.
2. Search Feature: The best way to learn about shortcodes and default features of the X theme, I’d highly recommend reviewing our knowledge base: https://theme.co/x/member/kb/
Thanks for understanding. Take care!
September 19, 2015 at 1:13 pm #395976This reply has been marked as private.September 19, 2015 at 9:07 pm #396141Hello There,
Thanks for updating this thread! Please make sure that you have the same set of plugins in those two sites. Upon checking, your second site doesn’t have Jetpack carousel installed. Please have it installed.
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
September 19, 2015 at 9:56 pm #396170Thank you! I will!
-
AuthorPosts