Forum Replies Created
-
AuthorPosts
-
volvoxMember
THanks for above answer -
I will try to remove the footer-widgets using a function (re: your ref here: http://wpsites.net/best-plugins/remove-widgets/ )
volvoxMemberI did install Firebug for Firefox.
As i asked before, which way is better - hide widgets using CSS or use of a php function to remove it?
volvoxMemberBy the way - which way is better in order to remove/hide widgets from specific page?
- CSS (hide) or a function ?
volvoxMemberGreat - i have much to learn!
Thanks
volvoxMemberOK thanks.
then i'm back to the removing function ... such as
add_action('get_footer-widgets', 'child_remove_genesis_do_footer-widgets');
function child_remove_genesis_do_footer-widgets() {
if (is_page_template(page-catarchive.php)) {
remove_action('genesis_footer-widgets', 'genesis_do_footer-widgets');
}
}
with no success !(page for which the 3 footer-widgets must be removed is: http://volvoxsoft.com/calendrier/)
volvoxMemberHello - i reopen the post for another related question
Here i want to remove the footer-widgets sections from an archive template page i have done.
Obviously a trick like
.archive #footer-widgets {
display
:
none
;
}
does not work!
In fact, what is the conditional tag name for this custom archive page i have created ?
(Template Name is 'Category Archive', File name is 'page-catarchive.php'.Thanks
volvoxMemberNice - thanks a lot for hints and references - very useful
I have used the CSS rule but will also try the function.
volvoxMemberAnd for reference here is the page.
Thanks
volvoxMemberThanks....
The tag is footer-widgets
Since i want to touch the the home page only (so the CSS trick can't be applied) i came back with your first suggestion editing the function, but still get error!
Here the whole original function.php file:
<?php
/** Start the engine */
require_once( TEMPLATEPATH . '/lib/init.php' );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Corporate Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/corporate' );$content_width = apply_filters( 'content_width', 620, 450, 930 );
/** Add new image sizes */
add_image_size( 'featured', 500, 240, TRUE );
add_image_size( 'home-middle', 275, 100, TRUE );/** Add suport for custom background */
add_custom_background();/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 130, 'textcolor' => 'ffffff', 'admin_header_callback' => 'corporate_admin_style' ) );/**
* Register a custom admin callback to display the custom header preview with the
* same style as is shown on the front end.
*
*/
function corporate_admin_style() {$headimg = sprintf( '.appearance_page_custom-header #headimg { background: url(%s) no-repeat; font-family: Droid Sans, arial, serif; min-height: %spx; text-shadow: #000 1px 1px; }', get_header_image(), HEADER_IMAGE_HEIGHT );
$h1 = sprintf( '#headimg h1, #headimg h1 a { color: #%s; font-size: 30px; font-weight: normal; line-height: 30px; margin: 40px 0 0 15px; text-decoration: none; }', esc_html( get_header_textcolor() ) );
$desc = sprintf( '#headimg #desc { color: #%s; font-size: 16px; line-height: 1; margin: 10px 0 0 30px; }', esc_html( get_header_textcolor() ) );printf( '<style type="text/css">%1$s %2$s %3$s</style>', $headimg, $h1, $desc );
}
/** Change breadcrumb location */
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'featured',
'name' => __( 'Featured', 'corporate' ),
'description' => __( 'This is the featured section.', 'corporate' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-1',
'name' => __( 'Home Middle #1', 'corporate' ),
'description' => __( 'This is the home middle #1 section.', 'corporate' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-2',
'name' => __( 'Home Middle #2', 'corporate' ),
'description' => __( 'This is the home middle #2 section.', 'corporate' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-3',
'name' => __( 'Home Middle #3', 'corporate' ),
'description' => __( 'This is the home middle #3 section.', 'corporate' ),
) );
?>volvoxMemberHello - thanks... the above code does'nt do it! Adding the code to the function.php file gives me an error ( blank page).
And this is the home-bottom section i want to remove from the home page - not the footer. There are three home-bottom sections (1,2,3), similar to the home-middle sections.
-
AuthorPosts