Forum Replies Created
-
AuthorPosts
-
PinkInkMember
thanks so much Greg!! you saved me hours or scouring the net LOL you rock!
Tiff
PinkInkMemberSorry that's...
.home content{
display:none;
}
Tiff
PinkInkMemberohh but #home content{ display:none;
Worked!!!!
Tiff
PinkInkMemberLOL that removed everything on the home page (including my widgets) except the header and footer LOL!!
Tiff
PinkInkMemberwith that remove it from all pages though or just home?
Tiff
PinkInkMemberOh I see why, you're forcing the full width layout hmmm LOL
Tiff
PinkInkMemberOhh Greg you are a champion! so close LOL it's removed everything however the content sidebar wrap is still there just with nothing in it. So it's like a full width white strip
Tiff
PinkInkMemberThanks Greg, no problem, take your time!
Tiff
PinkInkMembersorry duplicate post
Tiff
PinkInkMemberI've gotten a little closer LOL I have added the following code.
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); // Removes breadcrumbs
remove_action( 'genesis_post_title','genesis_do_post_title' ); // Removes post title
remove_action( 'genesis_post_content', 'genesis_do_post_content' ); // Removes content
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
Which feels a little like deconstructing Lego block by block LOL I just have the content section left now
Tiff
PinkInkMemberthe bottom sections were just me trying anything out but they haven't worked so I'm removing
// remove content from home
add_action ('genesis_before_loop', 'remove_content_home');
function remove_content_home() {
if (is_home() ) {
remove_action ('genesis_after_content','genesis_get_content');
}
}
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');
remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
remove_action( 'genesis_content_sidebar', 'genesis_do_content_sidebar');
remove_action( 'genesis_content_sidebar_wrap', 'genesis_do_content_sidebar_wrap');
Tiff
PinkInkMember
<?php/** Add home slider */
add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' );
function custom_welcome_text() {
genesis_widget_area( 'home-slider', array(
'before' => '<div class="home-slider">',
) );
}/** Add the home content section */
add_action( 'genesis_before_content_sidebar_wrap', 'mocha_home_content' );
function mocha_home_content() {/** Do nothing on page 2 or greater */
if ( get_query_var( 'paged' ) >= 2 )
return;genesis_widget_area( 'home-content', array(
'before' => '<div class="home-content widget-area">',
) );}
// remove sidebar from home
add_action ('genesis_before_loop', 'remove_sidebar_home');
function remove_sidebar_home() {
if (is_home() ) {
remove_action ('genesis_after_content','genesis_get_sidebar');
}
}
// remove content from home
add_action ('genesis_before_loop', 'remove_content_home');
function remove_content_home() {
if (is_home() ) {
remove_action ('genesis_after_content','genesis_get_content');
}
}
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');
remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
remove_action( 'genesis_content_sidebar', 'genesis_do_content_sidebar');
remove_action( 'genesis_content_sidebar_wrap', 'genesis_do_content_sidebar_wrap');genesis();
Tiff
PinkInkMemberHi Anitac, thank you so much! yes trying to remove the sidebar and content from home page only.
that worked to remove my sidebar however the content is still there.
Tiff
PinkInkMemberThis reply has been marked as private.PinkInkMembermy site is in maintenance mode while under construction would you like me to send you the link and password?
Tiff
PinkInkMemberWould forcing a layout like this in the home.php page
genesis_set_default_layout(
'custom_layout'
);
then adding bellow to my CSS work?
.custom_layout{
display:none;
}
Tiff
PinkInkMemberHi Susan, thank you so much for you reply, I really appreciate it.
With regards to the home page, I understand the static page which I think I may have to do anyway but it still leaves me with the content and sidebar (or full content), I actually want to remove (or hide using display:none; in the CSS if necessary) the .content_sidebar, #content_sidebar_wrap etc form the home page only so that just the widgets display.
Is that making any sense? sorry for not being very clear.
Tiff
PinkInkMemberHi achieve1 thank you so much for you reply, started to feel a little invisible here LOL
I've got the remove action in my home.php but it doesn't make a difference, I also tried using remove_action for the sidebar wrap although the code may not be right?
remove_action( 'genesis_before_content_sidebar_wrap', 'mocha_home_content' );
Tiff
PinkInkMemberSorry to butt in, but it seems I am trying to achieve something similar to this using only the Mocha theme. I've tried hiding the sidebar and content using the CSS style sheet however I can't seem to differentiate home from the entire site. Below is the CSS from the home page, as you can see it's using the same style on all pages, do you have any ideas I can try?
.content-sidebar #content-sidebar-wrap, .full-width-content #content-sidebar-wrap, .sidebar-content #content-sidebar-wrap
Tiff
PinkInkMemberAm I asking a silly question? would love some direction here.
Tiff
-
AuthorPosts