Adding "Gallery" to my home page.

This support request was posted in Folly by Creation Factory

Request ID #527 Resolved
  • Creation Factory

    Hello!

    Please forgive me for being a total amateur when it comes to this.

    I’m trying to add a gallery of recent work to my home page, exactly like the Folly demo site, but I absolutely cannot figure it out. I’ve read the docs and all that, and Im just not getting it. When i create a new page, the only Templates shown in the Page Attributes are “Blog”, “Contact”, and “Portfolio”; I don’t have any of the ones listed in the description.

    Also, I don’t have any widget options. When I go to Appearances-Widgets, it says “The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change”. Please help! Thanks so much!

    – Gary

    Juanfra Aldasoro

    Hello Gary,

    No problem. We’ve all been newbies in everything.

    To show some of your work on your home page you need to create “Portfolio” items.

    To do this: When you are in the admin section, you’ll see at the left that there’s a section for portfolio items. You can add them the same way as you do with pages: inserting a title, a description, and a featured image ( http://nicethemes.com/support/theme-docs/folly/#wordpress-featured-images ).

    Regarding widgets, that’s correct. This theme doesn’t count with widgetized spaces.

    Best,
    Juan.

    Creation Factory

    Thank you!

    do i make a separate portfolio for each item? or import them all to one as like, a gallery?

    and then how do i implement that on the front page?

    Creation Factory

    Nevermind, I figured it out. Thank you!

    Last question, can i change it so that instead of saying “This is my work”, it can say “Recent Work”? Where would i go to do that? Thanks!

    Juanfra Aldasoro

    No problem πŸ™‚

    You can edit the file index.php, on line 25:

    
    

    < ?php _e('This is my work', 'nicethemes');?>

    and replace it for

    
    

    < ?php _e('Recent Work', 'nicethemes');?>

    Best,
    Juan.

    Creation Factory

    Got it! One more thing I can’t figure out now is this:

    I’ve created my gallery on the home page, and I’m very happy with it. However, when I click the first item, it appears in a slide above and then in the post itself, but none of the other images have a slider. Is it possible to remove the slider altogether?

    Thank you so much for your patience and all of your help!

    Juanfra Aldasoro

    That’s because the template for the portfolio item displays the featured image. If the portfolio item has more than one image, it creates a slider.

    To remove the slider you have to edit the file single-portfolio.php (I would recommend you to make a backup before modifying any file).

    You can remove from line 7 to 73 to have it the way you want.

    that would be removing the following code:

    < ?php
    
                $embed = get_post_meta( $post->ID, 'embed', true );
    
    			$attachments = get_children( array(	'post_parent' => $post->ID,
    											/*'numberposts' => $repeat,*/
    											'post_type' => 'attachment',
    											'post_mime_type' => 'image',
    											'order' => 'DESC',
    											'orderby' => 'menu_order date')
    											);
    
    			if ( has_post_thumbnail() || !empty($attachments) || ( $embed <> '' ) )
    			{	?>
    
                	
    			< ?php
                }
    
    ?>
    

    Best,
    Juan.

    That worked perfectly. Thank you so much again for all of your help!

    I’m happy to hear that πŸ™‚

    Have a nice weekend,
    Juan.

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

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server