Community Forums › Forums › Archived Forums › General Discussion › Need some help about Hooks and Genesis customization
Tagged: archives, blog, entry, feature image
- This topic has 1 reply, 2 voices, and was last updated 8 years, 6 months ago by carasmo.
-
AuthorPosts
-
February 25, 2016 at 1:11 am #179862BensogoMember
Hi Genesis community,
For the first time, we use Genesis and are building our first custom theme from the genesis sample, we enjoy so much Genesis Framework.
We have achieved a lot of things, we have find lot of tips in the forum, documentations, tutorials, but now but we are locked on some small points.
We will be glad to find some help ๐To see the website we develop:
http://odyssea2016.wpengine.com/
login: demo
password: odyssea6 questions ๐
1. How to add a class to the featured image in single post page?
—> http://odyssea2016.wpengine.com/re-trouvez-le-bon-equilibre-avant-lete/2. How to remove entry-categories (category list) in entry-meta, on bottom of each post?
3. How to change the text ยซ Tagged With ยป in entry-tags in entry-meta?
4. How to display archive title + description in the archives page (post archives, tags archives and other archives)? We could do it for the title but not for the description.
—> http://odyssea2016.wpengine.com/category/forme-et-sante/ (category)
—> http://odyssea2016.wpengine.com/tag/chaussures/ (tag)5. How to display archive title + description in the blog page? We could do it for the title but not for the description.
—> http://odyssea2016.wpengine.com/news/6. How to relocate the title of the pages in another hook, we could partially do it, but the title is duplicated but not remove?
—> http://odyssea2016.wpengine.com/questions-frequentes/On more time, thank a lot for your help!
http://odyssea2016.wpengine.com/February 25, 2016 at 10:31 pm #179942carasmoParticipant1. Google for https://www.google.com/search?q=How+to+add+class+to+Genesis+featured+image&ie=utf-8&oe=utf-8
4 down: http://victorfont.com/genesis-framework-add-a-custom-css-class-to-elements/
look for genesis_attr_entry-image2. See the documentation, it's https://my.studiopress.com/snippets/post-meta/
3. Same as above
4. You want the archive title and description on the page, https://gist.github.com/braddalton/5432602
change the conditional to include the tag and author and home (google for Conditionals in WordPress and operators in PHP), and format it better, it's hard to read:/** * @author Brad Dalton - WP Sites * * @link http://wpsites.net/web-design/display-image-on-all-category-pages/ */ function themeprefix_display_category_archives_description () { if ( is_category() || is_tag() || is_author() || is_home() ) { echo category_description( $category-id ); } } add_action( 'genesis_before_loop', 'themeprefix_display_category_archives_description');
5. Same as 4
is_home()
is the blog page even if it's not your actual home/front page.6. When you add an action to another location, you have to remove the action from the previous location. Look in the docs.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.