Forum Replies Created
-
AuthorPosts
-
CeeDeeLightMember
Second question about this that just occurred to me. If I can't get this to work for the site description, I can do this using by removing the site description and replacing it with a simple text widget.
But does this remove the site description from being discovered by Google and harm the SEO? Or is there a way to allow Google to see the description and at the same time remove it from displaying on my website so that I can add a text widget?
June 15, 2018 at 10:49 pm in reply to: Why does the navigation link use the post title and not the slug? #220881CeeDeeLightMemberAck! I forgot about the menu section. Thank you!! That takes care of the navigation links.
Now I'll dig in and see about that filter for the breadcrumbs.
CeeDeeLightMemberYep, super duper uber dummy strikes again.
As usual Brad's tutorial works perfectly.
CeeDeeLightMemberI think I may have figured it out. This is why I should never read something without my glasses. I'll post back here once I've taken a deeper look.
Hint: Brad says he wrote the CSS for the primary navigation area. But my search box is in the sidebar. I can't believe I just noticed this after spending a few hours trying to resolve this "problem."
Ugh.
`CeeDeeLightMemberI added the code just as it appears in the tutorial. Aren't Dashicons pre-loaded with StudioPress themes?
ETA: My site is private for now while I work on the re-launch. Thank you.
CeeDeeLightMemberFor now I removed the entire post info section (what's the number for?):
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
And then I created a simple shortcode from one of your tutorials:
function new_post_info() { return '[post_date] [ssba-buttons]'; } add_shortcode('new_pi', 'new_post_info');
The p tags are gone and the date and share buttons are now on equal footing. I'll figure out how to wrap it in a div and get the buttons to display on the same line, and then maybe I'll replace the shortcode and write this out as a function that automatically places this under the entry title.
I'm not sure this is ideal, but so far it's working. Does Yoast SEO get the post date from the entry meta only? Could doing this affect how my content appears on Google?
CeeDeeLightMemberThanks, Brad.
So, is the idea to create a shortcode that filters the post info and removes the p tags? I would add the social share shortcode to this and then create a function that uses the new shortcode to accomplish this task?
I struggle with ADHD and have a hard time locking in on what I'm seeing long enough to make sense of it. It's frustrating.
The 'edit post info' code snippet provided by StudioPress doesn't filter out the p tags. The shortcode would rewrite the entire post info section, and a new function would be added that embeds this new shortcode, thereby wiping out the p tags.
Is that correct?
CeeDeeLightMemberSorry, I meant to share the code from the parent post.php that I altered. Where you see XXX is the location of the removed p tags.
add_filter( 'genesis_post_info', 'do_shortcode', 20 ); add_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_before_post_content', 'genesis_post_info' ); /** * Echo the post info (byline) under the post title. * * By default, only does post info on posts. * * The post info makes use of several shortcodes by default, and the whole output * is filtered via <code>genesis_post_info</code> before echoing. * * @since 1.0.0 * * @return void Return early if post type lacks support for <code>genesis-entry-meta-before-content</code>. */ function genesis_post_info() { if ( ! post_type_supports( get_post_type(), 'genesis-entry-meta-before-content' ) ) { return; } $filtered = apply_filters( 'genesis_post_info', '[post_date][ssba-buttons]' ); if ( false == trim( $filtered ) ) { return; } genesis_markup( array( 'open' => '', XXX 'close' => '', XXX 'content' => genesis_strip_p_tags( $filtered ), 'context' => 'entry-meta-before-content', ) ); }
CeeDeeLightMemberI saved a copy of my parent post.php file. Then I altered that file by removing the paragraph tags from the markup array and adding the shortcode. Now it works: the date and share icons are on the same line when I adjust the CSS.
But I couldn't successfully replicate this with the child theme. I created a child post.php file and placed it in the eleven40 Pro folder. It didn't work, so I added a structure folder inside lib, and still nothing.
What aren't I understanding about child theme files? Grrr.
The easier way would be a snippet in the functions file. But while I can remove the author and edit link and add the shortcode, I can't remove the paragraph tags. I'd really welcome some help with this.
Thank you.
CeeDeeLightMemberWhen I use Safari's inspector tool, I can slide the div that wraps the share icons up into the paragraph tags. And when I change their width to 50%, they display inside the paragraph tags and on the same line.
June 10, 2018 at 11:32 am in reply to: How to change the 'Continue reading' link on category excerpts #220718CeeDeeLightMemberFor various reasons I ended up uninstalling Genesis and the child theme and then doing a re-install. I adjusted the settings and this problem resolved itself. I must have had a setting incorrect, as you suggested. Thank you.
CeeDeeLightMemberI started a new discussion specific to the problem I've encountered, which is this: The StudioPress snippet works great, but it doesn't change the 'continue reading' link for category and tag excerpts.
How do I make it global for all post excerpts?
Maybe someone will see this here instead of my new discussion. Thank you.
June 8, 2018 at 11:34 am in reply to: How to change the 'Continue reading' link on category excerpts #220671CeeDeeLightMemberI'm reading the codex on this and still can't make sense of why the SP snippet only targets non-taxonomy excerpts. Why isn't it global?
-
AuthorPosts