Forum Replies Created
-
AuthorPosts
-
September 29, 2016 at 3:13 pm in reply to: Need to revert to Genesis prior to 2.4: download? #193917lsilverMember
Genesis 2.4 hosed the first site I upgraded on as well. Couldn't complete the upgrade process and got infinite redirects. Reverting to 2.3.1 seems to fix it.
lsilverMemberActually that breaks the site
lsilverMemberThanks!
May 25, 2016 at 2:40 pm in reply to: Run a function only if get_the_author_genesis_author_box_single is true #186275lsilverMemberThank you that was very helpful. I was doing something similar but using remove/add action and not a filter. This worked perfectly.
May 24, 2016 at 4:25 pm in reply to: Run a function only if get_the_author_genesis_author_box_single is true #186218lsilverMemberNo. I mean if you go to the User's profile page in WordPress, Genesis has added 2 toggles:
Enable Author Box in this User's Posts
Enable Author Box on this User's ArchivesI want to use a function that is conditional on the user's posts box being checked. I believe that is related to "get_the_author_genesis_author_box_single" as that's what's used if I wanted to control if it was checked or not (true or false). But instead of setting that value, I want to look it up and then use it as a conditional statement.
lsilverMemberWoot! Thanks. I knew I was close. I appreciate the help. Was playing with that for hours.
May 12, 2016 at 12:46 am in reply to: How to post author link and entry header info outside of loop #185441lsilverMemberThe issue was a conflict with Simple Edits
May 11, 2016 at 10:01 pm in reply to: How to post author link and entry header info outside of loop #185434lsilverMemberCare to elaborate?
If I'm using a template with a content area and sidebar, the title, author link, date, etc. is in the content portion. As far as I can figure out, the only way to even display the title so that it is centered above both the content area and the sidebar (and not just hte content area) is to move it to genesis_before_content.
lsilverMemberNot sure how to edit but this seems to be a better approach:
add_filter( 'genesis_attr_sidebar-primary', 'themeprefix_genesis_attributes_sidebar_primary', 20 ); function themeprefix_genesis_attributes_sidebar_primary( $attributes ) { $attributes['itemscope'] = ''; $attributes['itemtype'] = ''; return $attributes; }
lsilverMemberLooks like the actual code to remove the schema would be (as an example):
remove_filter( 'genesis_attr_sidebar-primary', 'genesis_attributes_sidebar_primary' ); add_filter( 'genesis_attr_sidebar-primary', 'sidebar_attributes_without_schema' ); function sidebar_attributes_without_schema( $attributes ) { $attributes['class'] = 'sidebar sidebar-primary widget-area'; $attributes['role'] = 'complementary'; return $attributes; }
This removes the standard functionality and then adds everything back other than the schema. I'm not sure if there's a way to just remove the schema and leave behind the classes. And not sure if there's an easier way. I doubt it.
lsilverMemberI'm also looking for a way of removing all Genesis added Schema. I'd appreciate any help in figuring this out.
I see the OP: remove_filter( ‘genesis_attr_head’, ‘genesis_attributes_head’ );
That's fine and would work but is there a list of all schema added, and is adding just the remove_filter sufficient or do you have to create a custom function or anything else?
February 11, 2015 at 3:21 am in reply to: Remove ellipsis from post widget / background color css #140446lsilverMemberSolved the background color problem. Had a weird browser issue and after re-opening site I was able to add the code I expected to work, and it did.
Could still use help with the ellipsis. I tried this but it didn't work:
function alter_content_limit($args){ if(stripos($args, "…") === 0){ return ""; } else{ return $args; } } add_filter("get_the_content_more_link", "alter_content_limit");
lsilverMemberThanks Sridhar. Exactly what I was trying to do.
-
AuthorPosts