Forum Replies Created
-
AuthorPosts
-
May 28, 2013 at 9:16 pm in reply to: Can I Move the Home Page (main URL) like Demo to a different page? #43012SociallyExceptionalParticipant
Oh, I also just realized - I removed the home.php when I renamed and inserted the welcome.php, so technically right now there is no home, or are you referring to a function inside the newly renamed welcome.php
May 28, 2013 at 9:12 pm in reply to: Can I Move the Home Page (main URL) like Demo to a different page? #43011SociallyExceptionalParticipantYes, I'd like to use the same classes, just to make it easier. Unless I shouldn't?
May 26, 2013 at 12:08 pm in reply to: Can I Move the Home Page (main URL) like Demo to a different page? #42698SociallyExceptionalParticipantOk, here are the 2 codes again below:
May 23, 2013 at 10:11 pm in reply to: Can I Move the Home Page (main URL) like Demo to a different page? #42407SociallyExceptionalParticipantOk great! I think I must be missing something still?
I went in and renamed the copy welcome.php and loaded it up and removed the home.php
<?php
add_action( 'genesis_meta', 'executive_welcome_genesis_meta' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function executive_welcome_genesis_meta() {if ( is_active_sidebar( 'welcome-slider' ) || is_active_sidebar( 'welcome-top' ) || is_active_sidebar( 'welcome-cta' ) || is_active_sidebar( 'welcome-middle' ) ) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'executive_welcome_sections' );
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'body_class', 'executive_body_class' );
add_action( 'genesis_after', 'executive_slider_excerpt_position' );/** Add body class to welcome page **/
function executive_body_class( $classes ) {
$classes[] = 'executive-welcome';
return $classes;
}/** Moves the slider pager if the sidebars are active and the screen is wide enough */
function executive_slider_excerpt_position() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
if (jQuery(".slide-excerpt").length > 0) {
jQuery(".flex-control-nav").addClass("nav-pos-excerpt");
}
});
</script>
<?php
}
}
}function executive_welcome_sections() {
if ( is_active_sidebar( 'welcome-slider' ) || is_active_sidebar( 'welcome-top' ) || is_active_sidebar( 'welcome-cta' ) || is_active_sidebar( 'welcome-middle' ) ) {
genesis_widget_area( 'welcome-slider', array(
'before' => '<div class="welcome-slider widget-area">',
) );genesis_widget_area( 'welcome-top', array(
'before' => '<div class="welcome-top widget-area">',
) );genesis_widget_area( 'welcome-cta', array(
'before' => '<div class="welcome-cta widget-area">',
) );genesis_widget_area( 'welcome-middle', array(
'before' => '<div class="welcome-middle widget-area">',
) );}
}
genesis();
Then I went into the functions.php file and placed the page id within the widgets code. Currently I don't have the Welcome page showing up with the changes. Thinking I didn't have the proper id within the widgets, I used "welcome" in the id area, but that didn't work either. Here is the code that is currently inside the widgets on the functions.php:
/** Register widget areas **/
genesis_register_sidebar( array(
'id' => '004-slider',
'name' => __( 'Welcome - Slider', 'executive' ),
'description' => __( 'This is the slider section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => '004-top',
'name' => __( 'Welcome - Top', 'executive' ),
'description' => __( 'This is the top section of the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => '004-cta',
'name' => __( 'Welcome - Call To Action', 'executive' ),
'description' => __( 'This is the call to action section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => '004-middle',
'name' => __( 'Welcome - Middle', 'executive' ),
'description' => __( 'This is the middle section of the home page.', 'executive' ),
) );May 21, 2013 at 4:53 pm in reply to: Can I add the responsive slider to a different page other than the home page? #42096SociallyExceptionalParticipantGreat. Thank you!
Now of course I should've thought about this before I asked the original question, but am I going to have to do something similar (or can I do it) and basically everything that is on the home page currently http://deanamurphyglobal.com/, is what we need to see on the http://deanamurphyglobal.com/welcome/ page. We don't have the "home - top", "home-middle", "home - call to action" in yet, but that's what also will need to show up on the /welcome page.
May 20, 2013 at 1:36 pm in reply to: Can I add the responsive slider to a different page other than the home page? #41875SociallyExceptionalParticipantOk great. I've got that in the bottom of the functions.php for the child theme. I also have the Simple Hooks plugin installed - do I need to do anything with that for the genesis_before_loop area?
The one thing I am not clear on, is how I move/designate the "Home-Slider" to work for the page http://deanamurphyglobal.com/welcome/ instead?
May 17, 2013 at 1:56 pm in reply to: Can I add the responsive slider to a different page other than the home page? #41426SociallyExceptionalParticipantIdeally, i need it to go here: http://deanamurphyglobal.com/welcome/ instead.
Now the hook location, Im not too sure about that
SociallyExceptionalParticipantThe Toggle pluggin works great if you check on each page that you don't want the title to show. Then the blog titles will still show. If you click the box inside the Genesis theme options to remove every header by default then it takes out the blog titles too
-
AuthorPosts