Forum Replies Created
-
AuthorPosts
-
December 21, 2017 at 11:39 pm in reply to: Adding genesis simple sidebar support to genesis cpt archive settings page. #214727hortonsartMember
That seems to only work for a custom taxonomy not a custom post type archive settings page.
hortonsartMemberMake these changes in your style.css file:
.genesis-nav-menu a:hover, .genesis-nav-menu .current-menu-item > a { background-color: #ccc; color: #000; }
October 26, 2016 at 4:36 pm in reply to: Remove CPT Entry Header and Footer on Search Results #195374hortonsartMemberHi Josh, I opted for a CSS approach to solve this problem by targeting the body class of "search" and the post class for my cpt to hide the entry meta.
.search .your-custom-post-type-class-here .entry-meta { display: none; }
All searches on your site should have a body class of "search" by default and all of your custom post types should have a custom post class by default as well. Let me know if you run into any problems.
hortonsartMemberThanks Victor. I guess I'm not understanding, or maybe were talking about two different things? The post types that are included in the search results are fine. I want the custom post types, pages and posts to show up in the results and they are. What I don't want is the entry header (post info) and entry footer (post meta) to be displayed on the results of my custom post types when being displayed in the search results, because they're more like pages (It doesn't matter what category they belong to, what date they were published, or which author actually published the custom post type etc.). I thought removing these items through their respective custom post type single templates would carry over into the search results?
For example let's say I have the following Post Types
- Pages
- Posts
- Products (Custom Post Type with entry_header_markup, post_info, entry_footer_markup, and post_meta removed in the single template -> single-products.php)Let's also say I've written a blog post that references one of these "Products" in its body. When I perform a search I get the blog post I wrote and the "product" posting in the results. This is great and what I want to happen, but both results are now being displayed with the date and the author and the number of comments, which is fine for a blog post because those elements are important, but I've removed those elements on the Products postings because that information doesn't matter.
For the time being I've just removed this info via CSS. If anyone knows a better way to do this please let me know.
hortonsartMemberDid you ever find a solution to this?
hortonsartMemberIf you are using the AgentPress Pro Theme, these settings are already in the functions.php file.
If you wanted to change the "Bathrooms" to "Color" you could modify this:
__( 'Bathrooms:', 'apl' ) => '_listing_bathrooms',
to this
__( 'Color:', 'apl' ) => '_listing_color',
If you wanted both "Bathrooms" and "Color" to display you would simply add a new detail called Color and leave the Bathroom detail alone. So it would look like this:
__( 'Bathrooms:', 'apl' ) => '_listing_bathrooms', __( 'Color:', 'apl' ) => '_listing_color',
hortonsartMemberI've been working for a large health organization and we're running several internal and external WordPress sites including a couple MultiSite installs using IIS. There will always be issues that will arise but for the most part it's been smooth sailing. let me know if you have any specific concerns.
hortonsartMemberHave you tried?:
/** Remove the post info function */ remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); /** Remove the post content */ remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
April 15, 2014 at 9:22 am in reply to: Genesis Pages Display Metadata Info when BuddyPress Is Installed #100471hortonsartMemberCorrect. Copy the Genesis Framework page.php, rename to buddypress.php and add those 2 lines before 'genesis();'
April 14, 2014 at 3:50 pm in reply to: Genesis Pages Display Metadata Info when BuddyPress Is Installed #100304hortonsartMemberTo fix this, create a new file 'buddypress.php' based off of the Genesis Frameworks page.php and add the following code to it:
// Removes the entry-header's entry-meta remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); //Removes the entry-meta in the footer of the post remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
hortonsartMemberAu Coeur, Do you have a link I can look at?
hortonsartMemberGo here to see instructions for all of the themes you have purchased from StudioPress. If you've purchased more than one.
http://my.studiopress.com/setup/hortonsartMemberWelcome! You can find the theme setup instructions here:
http://my.studiopress.com/setup/goinggreen-theme/January 26, 2014 at 6:57 am in reply to: Pushing sidebars below content/sliders in Prose theme #87069hortonsartMemberI'd recommend using a custom template for the front page of your site and adding custom widget areas for all of your content.
Stewart Chamberlain has a pretty good article on how to do this here:hortonsartMemberAre you just wanting to display x number of portfolio posts per page? Here's what I'm using for pagination in functions.php:
/** Change the number of portfolio items to be displayed (by Bill Erickson) */ add_action( 'pre_get_posts', 'CPT_portfolio_items' ); function CPT_portfolio_items( $query ) { if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'CPT_portfolio' ) ) { $query->set( 'posts_per_page', '9' ); } }
This will display the number of posts specified and then have a "Next Page>>" link for pagination at the bottom of the page
-
AuthorPosts