Adding "Gallery" to my home page.
This support request was posted in Folly by Creation Factory
- Creation Factory February 2, 2013 at 8:47 am
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 February 2, 2013 at 3:03 pmHello 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 February 2, 2013 at 7:39 pmThank 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 February 2, 2013 at 8:04 pmNevermind, 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 February 2, 2013 at 8:31 pmNo 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 February 2, 2013 at 8:35 pmGot 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 February 2, 2013 at 8:41 pmThat’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 if ( $embed <> '' ){ echo nice_embed( array ( 'id' => $post->ID, 'width' => 620 ) ); }elseif ( !empty($attachments) && ( count($attachments) > 1) ) { ?>< ?php } ?>< ? foreach ( $attachments as $att_id => $attachment ) { $src = get_nice_image_path($att_id); ?>< ?php nice_image( 'width=620&height=265&class=wp-post-image&src=' . $src );?>< ? } // endforeach ?>Best,
Juan.Creation Factory February 2, 2013 at 10:42 pmThat worked perfectly. Thank you so much again for all of your help!
This topic is marked as resolved
Only the topic author can re-open this thread.