Forum Replies Created
-
AuthorPosts
-
Chuck
MemberThe easiest way is with theme versioning. There is a good lab at KnowtheCode which explains the process. The first video is free and gives you the basic idea.
Genesis Version – Ensure Your Latest Changes Go Out to the Browser
Chuck Smith
Chuck Smith
Twitter: @polishedwpChuck
MemberYou should be able to setup template file for a post type. Here is a gist which may help:
Also look at the WordPress Template Heirarchy in the Codex.
Chuck Smith
Twitter: @polishedwpApril 19, 2018 at 3:52 pm in reply to: Academy Pro: Remove Featured images from Category template #219124Chuck
MemberThanks Brad, I ended up wrapping in a function:
add_action( 'genesis_entry_header', 'cs_category_no_image'); function cs_category_no_image() { if (is_category( 'news')) { remove_action( 'genesis_entry_header', 'genesis_do_post_image', 8 ); } }
Works perfectly.
Chuck Smith
Twitter: @polishedwpApril 19, 2018 at 1:57 pm in reply to: Academy Pro: Remove Featured images from Category template #219120Chuck
MemberBrad, I have been working with this theme and have tried the above. I need to remove the images in the category "news" so, none of the post use featured images. BUT Academy Pro grabs an image from the post to create a post thumbnail that is included above the post.
I created a category-news.php template. I added a "content-sidebar" layout just to test if it was working and it is.
However, the above does not remove the image: http://ccec2.flywheelsites.com/category/news/
I wonder if /lib/featured-image.php or /lib/grid-layout.php is running after the template? Any help would be appreciated.
Chuck Smith
Twitter: @polishedwpChuck
MemberThanks Standiou but I am looking for Genesis themes. I am working on developing a CPT plugin that would meet my needs. I basic functionality so far. I need to tweak page templates and figure out custom widgets, then I will release to the repository.
Chuck Smith
Twitter: @polishedwpAugust 9, 2015 at 9:09 pm in reply to: Change h1 title to h2 title on teasers. Genesis Teasers Plugin #161884Chuck
MemberInteresting problem. When you look at the source code of the page, the titles are being displayed as H2, but the CSS class (.entry-title) is associated with H1.
You might want to edit your style.css and separate the entry-title class. No guarantee it will work, but try this:
h2, .entry-title { font-size: 4rem; font-family: Sue Ellen Francisco; color: #A1BBC9; text-transform: uppercase; }
Chuck Smith
Twitter: @polishedwpChuck
MemberFunction was stripped:
add_action( 'pre_get_posts', 'prefix_reverse_post_order' ); function prefix_reverse_post_order( $query ) { if ( is_admin() ) return; // Only change the query for post archives. if ( $query->is_main_query() || is_front_page() || is_archive() || is_post_type_archive() ) { $query->set( 'orderby', 'date' ); $query->set( 'order', 'ASC' ); } }
Chuck Smith
Twitter: @polishedwpChuck
MemberOkay I figured it out... I could not get that function to work either. I found this:
Rewrote the function to check for either front-page, archive page, or archive post. I tested here on a clean sub-domain with Genesis Sample installed. Look at the front-page and the blog page an notice the date order of the posts.
Chuck Smith
Polishedwp.com
Chuck Smith
Twitter: @polishedwpChuck
MemberHey,
Try these functions listed here:
https://surefirewebservices.com/how-to-reverse-the-post-order-using-the-genesis-framework/Looks they should work for you.
Chuck Smith
Twitter: @polishedwpChuck
MemberI have run across a few other oddities when I compare my site that I am managing and the Outreach Demo.
Slider image is is the default 1140x460
Looking at the thumbnail images sizes in Home-Bottom:
When I right click on the image in Firefox and view info in the Demo the image size reads:
285px x 160px (scaled to 263px x 148px)However my site http://wumcriegelwood.org/ reads:
427px x 240px (scaled to 263px x 148px)Looking at the thumbnail images sizes in the sidebar of a page for Latest podcast:
Demo site: http://my.studiopress.com/themes/outreach/#demo-fullWhen I right click on the image in Firefox and view Image Info in the Demo the image size reads:
300px x 150px (scaled to 290px x 145px)However my site on page http://wumcriegelwood.org/ reads:
427px x 240px (scaled to 290px x 163px)Any ideas of what may be causing these issues?
Help and feedback would be appreciated.
Chuck Smith
Twitter: @polishedwpChuck
MemberThanks ...I was noticing that too...
Chuck Smith
Twitter: @polishedwpChuck
MemberAfter reviewing the page source, it looks like something is resizing the image to 150x100...
Chuck Smith
Twitter: @polishedwp -
AuthorPosts