Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis Static Homepage
- This topic has 11 replies, 3 voices, and was last updated 9 years, 5 months ago by JamesRoberts.
-
AuthorPosts
-
October 18, 2014 at 7:38 am #128251George IlidisMember
Hello everyone,
I want to have a static homepage and a blog page so i created these two pages and configured it through the wordpress reading settings. Also i've registered some widget areas to appear only at the static homepage (it's not a new template, just used conditionals) and some of these widget areas include blog posts (using the Genesis featured posts widget). So here come my questions!
1. Should i choose some specific hook to register the widget areas for the Genesis featured posts widget? I mean is there any hook that has more "important meaning" for a search engine etc? I finally chose the "after_entry" hook so it appear under the main content. Please correct me if i'm wrong!
2. Can the hook that the blog posts will be included affect the use of some plugins? I just came across this post "http://www.billerickson.net/dont-use-genesis-blog-template/", so this question just appeared.
3. The title of the static homepage is "home" and there is no content added for this page. So i can see the title and a blank content area in my homepage. How can i remove this area (genesis_loop i guess?) for this page (once again, it's not a new template)?
That's all! What i really need to know is if (and how) the posistion of the Genesis featured posts can affect the "importance" of the content for the search engines. Thanks in advance!
October 18, 2014 at 8:03 am #128254Brad DaltonParticipantOctober 18, 2014 at 8:08 am #128255George IlidisMemberUnfortunately the site in not live yet. Can i help at something you wanted to see?
October 19, 2014 at 10:20 am #128306George IlidisMemberBrad, what if i tried to upload the website on a test domain for some hours? Will this be ok? Thanks!
October 19, 2014 at 11:10 am #128307George IlidisMemberActually, i've just did it 🙂 http://wpdesigns.gr/
October 19, 2014 at 11:50 am #128314Brad DaltonParticipantI'll answer no. 3 with this http://wpsites.net/web-design/create-a-front-page-template-for-genesis-beginners-guide/
Otherwise you might consider taking a front-page.php file from an existing theme
October 19, 2014 at 12:11 pm #128315George IlidisMemberWell, i don't think i will make it this way. I can see that Executive Pro for example registers some widget areas in the functions file and then the front-page template calls these widget areas. Is there any guide to create a template (or even the code to call the widgets areas) that will call the widget areas i've already registered?
October 19, 2014 at 12:26 pm #128316JamesRobertsMemberHi GiorgarasAE, to call a widget that has already been redgistered use the following code...
genesis_widget_area( 'widget-area-name', array( 'before' => '<aside>', 'after' => '</aside>', ) );
And you can check if the widget area is populated by using
is_active_sidebar( 'widget-area-name' );
.
Need beautiful and responsive Genesis child themes at amazing prices? Stop by LlamaPress and check out our themes.
October 19, 2014 at 1:06 pm #128322George IlidisMemberThat's fine, thanks! I think that the easiest way is to remove the loop for the home page created and checked through the reading settings. Can i remove the loop only for this page (with the conditional) using the functions file?
October 19, 2014 at 1:13 pm #128324JamesRobertsMemberIn order to remove the loop from a static front page, you could use the following in your functions.php...
if (is_page('Home')) { remove_action( 'genesis_loop', 'genesis_do_loop' ); }
I've not tested that but in theory it should work.
Need beautiful and responsive Genesis child themes at amazing prices? Stop by LlamaPress and check out our themes.
October 19, 2014 at 1:38 pm #128330George IlidisMemberIt worked with a litle edit:
if ( ! is_front_page() ) { remove_action( 'genesis_loop', 'genesis_do_loop' ); }
Thanks man!
October 19, 2014 at 2:07 pm #128341JamesRobertsMemberNo problem, glad you got it sorted 🙂
Need beautiful and responsive Genesis child themes at amazing prices? Stop by LlamaPress and check out our themes.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.