Forum Replies Created
-
AuthorPosts
-
May 10, 2018 at 6:01 pm in reply to: Creating a post without sidebars but not full width eleven40 theme #219736
nate
MemberThis reply has been marked as private.May 9, 2018 at 4:35 pm in reply to: Creating a post without sidebars but not full width eleven40 theme #219694nate
MemberHmmm only thing with this is that it also adds that padding when on mobile, which isn't ideal. If there was a way to do a "maximum width" so that it was only so wide on desktop but could still go full width on mobile.....
May 9, 2018 at 4:21 pm in reply to: Creating a post without sidebars but not full width eleven40 theme #219692nate
MemberThanks again for your reply Brad.
I was a little confused (my CSS/PHP etc is elementary at best!) but I did some more research and trial and error, and adding this to CSS.
.custom-body-width .content { border: none; padding: 4% 15% 1% 15%; float: none; width: 100%; }
And then put "custom-body-width" in the Custom Body Class section of the post and that seems to do what I wanted - 75% content width with everything else being normal and it doesn't effect the "full-width-content" layout at all.
Seems to be how I want it - http://testitout2.siterubix.com/test-post-for-automatic-301-redirects-2016 (this is just on my test page for now).
Is this a reasonable solution or can you foresee this causing problems (e.g. site speed, coding clashes etc) . I will most likely using this for 100+ posts.
Grateful for your advice,
NateMay 9, 2018 at 10:18 am in reply to: Creating a post without sidebars but not full width eleven40 theme #219673nate
MemberThanks Brad.
Appreciate the reply.
I didn't realize that you could do page templates in posts now. Though I don't see "Page Attributes" at all when I go to edit on a post. But that could be an option if I can work that out.
If I use page_landing.php will that then just show the landing page template? I still want to have the menus, tagline, post data etc that I would normally have on a post - essentially a full width post, just not as wide.
I did notice that there is "Custom Post Class" in the post edit page. Would there be a way of using this to achieve it.
Thanks again!
nate
MemberGood to know.
Yeah I must've missed something. Glad it's working now.
One more small thing - only if it's an easy thing to figure out, I don't want to take up much more of your time.
Now that the post meta is gone it also gets rid of the underline at the bottom. Is there an easy way to add back an underline?
nate
MemberI'm not sure if the order made any difference. I think it was more copying the original code that you sent me in and adding in the || that did the trick. Maybe there was a small typo somewhere in the second lot of code. I'll give it a look.
After looking in there the only difference I can see from the first code to the second code is that there was no indentation in parts of the second lot of code that there were in the first code you sent. I'm not sure if this indentation makes any difference?
nate
MemberGot it to work!
Thanks so much. Very much appreciated.
I first tried with just the
is_front_page
and that didn't work but then I used the original code you gave me and replaced theis_archive
withis_front_page
and that worked for the front page and then I added in the|| is_archive())
and now it works for both.So final code, for anyone else who's having difficulty with this, was:
// Remove Post Info, Post Meta from Archive Pages function themeprefix_remove_post_meta() { if (is_front_page() || is_archive()) { remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); } } add_action ( 'genesis_entry_header', 'themeprefix_remove_post_meta' );
Thanks Porter!
nate
MemberHi
Thanks for your speedy reply!
I added that in and the post meta and post info is still showing on the front page and it's now also showing up again on the category pages.
This is exactly what's in my functions.php
// Remove Post Info, Post Meta from Archive Pages function themeprefix_remove_post_meta() { if (is_archive() || is_front_page()) { remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 ); remove_action( ‘genesis_entry_footer’, ‘genesis_post_meta’ ); } } add_action ( ‘genesis_entry_header’, ‘themeprefix_remove_post_meta’ );
Thanks so much for your help so far.
nate
MemberHi Porter
Thanks for this. Sorry for the late reply here. I thought I had clicked notify me of follow-ups via email but I mustn't have!
This code has worked perfectly for category pages - i.e. they now don't show post meta or post info and do show the post meta and post info on the individual posts.
However, the post meta and post info still show on the front page (I'm using the "your latest posts" for the front page option in wordpress writing settings). Do you know if there's a way that I can also have it so that the post meta and post info doesn't show on the front page?
i.e. is there a condition like:
if (is_frontpage())
That I could add into that code to do that?
Thanks for all your help so far. Much appreciated.
Nate
nate
MemberI know if you remove the
add_action(‘genesis_entry_footer’, ‘genesis_post_meta’, 12);
then it should only show the one post meta again. But I'm not sure how to remove the post_meta I'm trying to figure this out now. Does anyone know how to achieve this?
What theme are you using balto? I'm using Eleven40
nate
MemberThanks so much - worked perfectly - appreciate it.
nate
MemberThanks!
Jutst to be sure - by CSS I take it you mean the stylesheet - and do I just add it at the bottom or is there somewhere specific?
nate
MemberHi Julia
Thanks for the reply.
My website is http://snowboardingprofiles.com
Here's a link to a post that has an author box on it in case you need that - http://snowboardingprofiles.com/how-to-choose-the-right-size-snowboard-bindings
Thanks for the help,
NateJanuary 31, 2015 at 4:42 pm in reply to: Vertically Aligning Images in Tables Eleven40 Theme #139212nate
MemberHey - thanks for the responses - I’m only seeing them now – I usually get an email when responses come in!
This was so that I could centre images vertically within a table. I have now figured it out. It was a matter of using
<img class=”aligcenter wp-image-757″ src=
I had tried using “aligncenter” and it did nothing but removing the “n” from the “align” seemed to do the trick. Not sure why but it worked so I’m not arguing!
Thanks again for your input.
NateJanuary 31, 2015 at 4:40 pm in reply to: Is it possible to remove image padding in individual images #139211nate
MemberHi Tom
Thanks for the response - I'm only seeing it now - I usually get an email when responses come in!
This was so that I could centre images vertically within a table. I have now figured it out. It was a matter of using
<img class="aligcenter wp-image-757" src=
I had tried using "aligncenter" and it did nothing but removing the "n" from the "align" seemed to do the trick. Not sure why but it worked so I'm not arguing!
Thanks again for your input.
Natenate
MemberWorked!
My site is back!
Thanks so much! - I can breathe again.
nate
MemberBelow is the home.php in my theme (Eleven40 Theme). I assume that this is what instructs the theme's blogroll when home page is set to “Your Latest Posts” in Settings>>Reading? How this looks is here http://snowboardingprofiles.com/blog for my site.
<?php //* Add Genesis grid loop remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'eleven40_grid_loop_helper' ); function eleven40_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 1, 'feature_image_size' => 0, 'feature_image_class' => 'alignleft post-image', 'feature_content_limit' => 0, 'grid_image_size' => 'grid-featured', 'grid_image_class' => 'grid-featured', 'grid_content_limit' => 250, 'more' => __( '[Continue reading]', 'eleven40' ), ) ); } else { genesis_standard_loop(); } } //* Run the Genesis loop genesis();
In order to get the posts in the new page template (http://genesisdeveloper.me/full-width-page-content-with-blog-posts/) to look like the ones in the grid on http://snowboardingprofiles.com/blog I have experimented with inserting some of the above code into the custom page template. However, I am not good with code and it was a bit haphazard to say the least! I got it to do some different things but not things that I was trying to achieve.
If anyone knows how I can get the blog posts to show in the grids like they do on http://snowboardingprofiles.com/blog on my home page here http://snowboardingprofiles.com/ using http://genesisdeveloper.me/full-width-page-content-with-blog-posts/ that would be super awesome!
Sincerely,
NateNovember 21, 2014 at 10:06 pm in reply to: Adding a static section to front page but keeping latest posts underneath #132467nate
MemberBelow is the home.php in my theme (Eleven40 Theme). I assume that this is what instructs the theme's blogroll when home page is set to “Your Latest Posts” in Settings>>Reading. How this looks is here http://snowboardingprofiles.com/blog for my site.
<?php //* Add Genesis grid loop remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'eleven40_grid_loop_helper' ); function eleven40_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 1, 'feature_image_size' => 0, 'feature_image_class' => 'alignleft post-image', 'feature_content_limit' => 0, 'grid_image_size' => 'grid-featured', 'grid_image_class' => 'grid-featured', 'grid_content_limit' => 250, 'more' => __( '[Continue reading]', 'eleven40' ), ) ); } else { genesis_standard_loop(); } } //* Run the Genesis loop genesis();
In order to get the posts in the new page template to look like the ones in the grid on that page I have experimented with inserting some of this into the custom theme template. However, I am not good with code and it was a bit haphazard to say the least! I got it to do some different things but not things that I was trying to achieve.
If anyone knows how I can get the blog posts to show in the grids like they do on http://snowboardingprofiles.com/blog on my home page here http://snowboardingprofiles.com/ that would be super awesome!
Sincerely,
NathanNovember 13, 2014 at 1:51 pm in reply to: Adding a static section to front page but keeping latest posts underneath #131452nate
MemberI tried adding the CSS tweak but this made no noticeable difference in the appearance on my theme.
If anyone has any ideas on how to tidy up the blog exerts that would be awesome.
Sincerely,
NathanNovember 12, 2014 at 7:40 pm in reply to: Adding a static section to front page but keeping latest posts underneath #131359nate
MemberJust noticed the part on your post that talks about the CSS Tweak - would that change anything and how do I add that if I needed to?
-
AuthorPosts