Forum Replies Created
-
AuthorPosts
-
Brad
MemberI took a quick look and these are the basic steps you would need to take to add content/sidebar and sidebar/content back to Atmosphere Pro.
Several snippets of code would need to be removed or commented out in the functions file:
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
unregister_sidebar( 'sidebar' );
genesis_unregister_layout( 'content-sidebar' );
genesis_unregister_layout( 'sidebar-content' );You would then need to grab the entire main section of CSS labeled "Column Widths and Positions" from the Sample theme and add that back into the style.css file of Atmosphere Pro.
You would then need to adjust the CSS in the Atmosphere Pro style.css to accommodate the sidebar. This would likely involve giving content/sidebar and sidebar/content pages less padding so that you can give some decent width to the content and sidebar.
I'm guessing that you would need to set full width as your default layout and then choose content/sidebar or sidebar/content layout for specific pages.
Hope that gets you pointed in the right direction and as always do this on a copy of your theme to make sure it works first.
Brad
Member@Nathan-Rice
Very kind offer and I would appreciate that very much. I've looked at what I wrote 2 years ago (with assistance from Gary) and I'm scratching my head wondering what to do!I was looking at markup.php and it seems like a lot of changes have happened. My summer break is over and I'm back at my full-time job so I welcome any PRs.
Brad
MemberUh Oh, what broke? That was my very first plugin so it likely needs improving.
Brad
MemberMake a backup of your style sheet.
I can kind of point you in the right direction:Change this:
.agency-pro-home .featuredpost .entry {
background: none;
float: left;
width: 33.33334%;
}to:
.agency-pro-home .featuredpost .entry {
background: none;
float: left;
width: 50%;
}Then change:
.home-bottom .featuredpost .post:nth-of-type(3n+1),
.home-middle .featuredpost .post:nth-of-type(3n+1) {
clear: left;
}to:
.home-bottom .featuredpost .post:nth-of-type(3n+1),
.home-middle .featuredpost .post:nth-of-type(2n+1) {
clear: left;
}You will likely have to do some other tweaking on the image size settings and re-uploading the images. Might also have to tweak some of the min-height: settings in the media queries.
June 17, 2014 at 2:16 am in reply to: Removing site tagline and footer widgets on minimumpro inner pages #110137Brad
MemberSomething like this code placed in your functions file before the " //* Register widget areas " section should work. Basically it says if it's the front page do nothing otherwise remove the site tagline and footer widgets. Don't forget to make a backup copy of your functions file before editing it.
add_action( 'after_setup_theme', 'remove_widget_areas' ); function remove_widget_areas() { if( is_front_page() ) return; remove_action( 'genesis_after_header', 'minimum_site_tagline' ); remove_theme_support( 'genesis-footer-widgets', 3 ); }
Brad
MemberLooks like this is being caused by the exessive padding in the following CSS:
.epik-darkblue #subnav { background: #0274BE; padding-left: 640px; }
You also have a problem with the sidebar not fully displaying in your first media query. I'm guessing the width of the content and sidebar exceed the 960px width set in that query. When overflow: hidden; is applied for clearing purposes, it will chop off any content that exceeds its width.
Brad
MemberSorry I'm so late here but Microdata Manager does support custom post types
In your functions file, add this:
add_post_type_support( 'your-cpt-name', array( 'microdata-manager' ) );
Replace "your-cpt-name" with the actual name of your custom post type
Brad
MemberOne of my favorites:
http://pippinsplugins.com/easy-content-types/
Offers best of both worlds
"Export code for custom post types for use on sites without the plugin"Brad
MemberThanks. Keep in mind the plugin only allows changes to the specific microdata settings. Genesis uses microdata on many elements that the plugin does not cover but those were elements that I didn't think would ever need to be changed.
Brad
MemberYou would keep the code you wrote in the functions file. I added the following code to my Minimum Pro theme. I placed the code in the front-page.php file. You would substitute "home-optin" for "home-top-full" below.
//* Add widget area to front page add_action( 'genesis_after_header', 'minimum_home_top', 15 ); function minimum_home_top() { printf( '<div %s>', genesis_attr( 'home-top' ) ); genesis_structural_wrap( 'home-top' ); genesis_widget_area( 'home-top-full', array( 'before'=> '<div class="home-top-full widget-area">', 'after' => '</div>', ) ); genesis_structural_wrap( 'home-top', 'close' ); echo '</div>'; //* end .home-top }
In your style sheet you would add styles to .home-top
Brad
MemberThat post also mentions how to change the default Schema within Genesis 2.0. If you ever want to change the existing Schema settings in Genesis 2.0 HTML5, I wrote a handy plugin for that which @GaryJ reviewed and refined. http://wordpress.org/plugins/microdata-manager/
Brad
MemberI was incorrect about the padding adding to the problem but yes changing the widget area dimensions fixes it. I further inspected your source code and noticed this:
<title>Blog — Just another WordPress site</title>
<style type="text/css">
.header-image #header #title-area {
width: 400px;
height: 120px;
background: url(http://cpluscreative.com/wordpress/wp-content/uploads/2012/10/logocopy.png) no-repeat!important;
}
</style>So with that logo image being 400px wide you have to make sure the remaining width allotted for the header widget area doesn't exceed 560px
The logo has a lot of extra space to the right of it so you could crop it to free up more width for the header widget area and adjust the CSS accordingly.
Brad
MemberThis would yield a different url but one method would be to create a page and then assign the blog template to that page. Next you would create a custom field in that page with the name of query_args. The value of that custom field would be something like cat=x&orderby=date&order=ASC
x = the ID of the category
-
AuthorPosts