Forum Replies Created
-
AuthorPosts
-
jenglish647Member
How would I go about doing that?
jenglish647MemberOk thanks guys.
jenglish647MemberI'm not sure where I'm going wrong but I'm following the instructions on the link and nothing is happening. SO when you say unhook the header and hook it back maybe that's where I'm going wrong. When I used the simple hooks I saw where it said "unhook header" so that's the only part on simple hooks I actually used and then I tried inputting the code into the functions file (and when that didn't work I tried to input the same code into the simple hooks plugin). My functions.php code looks like this before I do any adjustments so maybe you can tell me where to unhook and where to add this code on the link:
// Initialize Sandbox ** DON'T REMOVE **
require_once( get_stylesheet_directory() . '/lib/init.php');add_action( 'genesis_setup', 'gs_theme_setup', 15 );
//Theme Set Up Function
function gs_theme_setup() {//Enable HTML5 Support
add_theme_support( 'html5' );//Enable Post Navigation
add_action( 'genesis_after_entry_content', 'genesis_prev_next_post_nav', 5 );/**
* 01 Set width of oEmbed
* genesis_content_width() will be applied; Filters the content width based on the user selected layout.
*
* @see genesis_content_width()
* @param integer $default Default width
* @param integer $small Small width
* @param integer $large Large width
*/
$content_width = apply_filters( 'content_width', 600, 430, 920 );//Custom Image Sizes
add_image_size( 'featured-image', 225, 160, TRUE );// Enable Custom Background
//add_theme_support( 'custom-background' );// Enable Custom Header
//add_theme_support('genesis-custom-header');// Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );/**
* 07 Footer Widgets
* Add support for 3-column footer widgets
* Change 3 for support of up to 6 footer widgets (automatically styled for layout)
*/
add_theme_support( 'genesis-footer-widgets', 3 );/**
* 08 Genesis Menus
* Genesis Sandbox comes with 4 navigation systems built-in ready.
* Delete any menu systems that you do not wish to use.
*/
add_theme_support(
'genesis-menus',
array(
'primary' => __( 'Primary Navigation Menu', CHILD_DOMAIN ),
'secondary' => __( 'Secondary Navigation Menu', CHILD_DOMAIN ),
'footer' => __( 'Footer Navigation Menu', CHILD_DOMAIN ),
'mobile' => __( 'Mobile Navigation Menu', CHILD_DOMAIN ),
)
);// Add Mobile Navigation
add_action( 'genesis_before', 'gs_mobile_navigation', 5 );//Enqueue Sandbox Scripts
add_action( 'wp_enqueue_scripts', 'gs_enqueue_scripts' );/**
* 13 Editor Styles
* Takes a stylesheet string or an array of stylesheets.
* Default: editor-style.css
*/
//add_editor_style();// Register Sidebars
gs_register_sidebars();} // End of Set Up Function
// Register Sidebars
function gs_register_sidebars() {
$sidebars = array(
array(
'id' => 'home-top',
'name' => __( 'Home Top', CHILD_DOMAIN ),
'description' => __( 'This is the top homepage section.', CHILD_DOMAIN ),
),
array(
'id' => 'home-middle-01',
'name' => __( 'Home Left Middle', CHILD_DOMAIN ),
'description' => __( 'This is the homepage left section.', CHILD_DOMAIN ),
),
array(
'id' => 'home-middle-02',
'name' => __( 'Home Middle Middle', CHILD_DOMAIN ),
'description' => __( 'This is the homepage middle section.', CHILD_DOMAIN ),
),
array(
'id' => 'home-middle-03',
'name' => __( 'Home Right Middle', CHILD_DOMAIN ),
'description' => __( 'This is the homepage right section.', CHILD_DOMAIN ),
),
array(
'id' => 'home-bottom',
'name' => __( 'Home Bottom', CHILD_DOMAIN ),
'description' => __( 'This is the homepage right section.', CHILD_DOMAIN ),
),
array(
'id' => 'portfolio',
'name' => __( 'Portfolio', CHILD_DOMAIN ),
'description' => __( 'Use featured posts to showcase your portfolio.', CHILD_DOMAIN ),
),
array(
'id' => 'after-post',
'name' => __( 'After Post', CHILD_DOMAIN ),
'description' => __( 'This will show up after every post.', CHILD_DOMAIN ),
),
);foreach ( $sidebars as $sidebar )
genesis_register_sidebar( $sidebar );
}/**
* Enqueue and Register Scripts - Twitter Bootstrap, Font-Awesome, and Common.
*/
require_once('lib/scripts.php');/**
* Add navigation menu
* Required for each registered menu.
*
* @uses gs_navigation() Sandbox Navigation Helper Function in gs-functions.php.
*///Add Mobile Menu
function gs_mobile_navigation() {$mobile_menu_args = array(
'echo' => true,
);gs_navigation( 'mobile', $mobile_menu_args );
}// Add Widget Area After Post
add_action('genesis_after_entry', 'gs_do_after_entry');
function gs_do_after_entry() {
if ( is_single() ) {
genesis_widget_area(
'after-post',
array(
'before' => '<aside id="after-post" class="after-post"><div class="home-widget widget-area">',
'after' => '</div></aside><!-- end #home-left -->',
)
);
}
}jenglish647MemberMr. Dalton, I'm using simple hooks so I checked the box to unhook the header then went into the functions file and added the code exactly as you have it in the second option. Nothing happened. So I'm wondering what I did wrong. I also tried to add the code from the second option to the simple hooks where I unhooked the header. Please forgive me as this whole Genesis framework is not as easy to grasp as some of the other things I've done in the past.
jenglish647Memberunfortunately that didn't work. Not sure what else I could do.
jenglish647MemberNo. I guess I should have?
jenglish647MemberThanks Mr. Gee. I appreciate your feedback.
jenglish647MemberThank you. I'm new here and honestly didn't see the response until today so since yesterday I decided to forget using the whole widget thing and just build my home page using columns (plus I was thinking that SEO would do better if the content was in a page vs. a widget but maybe I'm wrong about that.) ANYway, I installed several different slideshow plugins that use shortcode and tried all of them and every single one is giving me trouble with leaving a white space on the right side. I'm using this on the homepage and the images are 954 by 354. I've looked through the forums and tried to fix it but nothing is working. It is driving me nuts. Any ideas or help would GREATLY be appreciated. Site is on local server so I can't send a link.
-
AuthorPosts