ceedee123
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Changing page breadcrumbsYou wrote: “Within this filter, rather than check
is_single()
check $id
against the ID of the resource you want to change the title for (also check that the post type you’re looking for is in the $type array, otherwise you may get unexpected results).”So, replace ‘is_single’ with the one in your array for pages? And then check for the id number of the page I’m targeting?
Isn’t ‘is_page’ (or whichever one you’re using) the same as checking for post type? Or is checking to make sure it’s in the array a separate statement I need to write?
Something like this?
if(in_array('post-page', $type) && (int) $id === MYPAGEID)
- This reply was modified 6 years, 5 months ago by ceedee123.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Changing page breadcrumbsI found this in the support forum. It seems I need to write a line of code that defines
$title
with the type and ID. The ID would be a number I’m guessing, and for type I thinkis_page()
is what I need to use.I’ll post back here once I figure it out.
add_filter('bcn_breadcrumb_title', 'my_breadcrumb_title_filter', 11, 3); function my_breadcrumb_title_filter($title, $type, $id) { if(is_single()) { //Update title with whatever you want here, use the $type array entities and $id to help you } return $title; }
Forum: Plugins
In reply to: [Yoast SEO] How to paginate breadcrumb archivesI need to clarify that it’s a normal function of this plugin to only have ‘Home’ on the archive pages. The homepage says ‘Home’ and when I click to the next page, I see the same thing.
But I’m not on the home page anymore.
This is normal? I know you said Yoast doesn’t paginate archive pages, but I don’t understand why. I also don’t recall having seen ‘Home’ as a standalone breadcrumb when I’m clicking the ‘Older posts’ link at the bottom of someone’s homepage for their blog and entering their archives.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] How to display buttons in entry metaWhen I replace the date with the shortcode, the icons display where the date was located, directly under the post title. But not inside the paragraph tags.
The paragraph tags seem to be the reason I can’t get the post date and share icons to display on the same line.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] How to display buttons in entry metaWhen I type a word next to the date, it displays inside the paragraph tag:
// CUSTOMIZE ENTRY META HEADER add_filter( 'genesis_post_info', 'themeprefix_post_info_filter' ); function themeprefix_post_info_filter( $post_info ) { $post_info = '[post_date] HELLO'; return $post_info; }
But when I replace HELLO with the Simple Share shortcode, it’s not included inside the paragraph tags, and it displays on a new line. I realize I need to change the CSS, but I don’t understand why the shortcode would be excluded from the paragraph tags. Maybe just removing the paragraph tags and using divs for the entry meta would be better, but I’m unsure of how to do that. WordPress really seems to like those paragraphs tags.
Forum: Plugins
In reply to: [Yoast SEO] How to paginate breadcrumb archivesThanks!
I’m using ‘Older posts’ and ‘Newer posts’ for my entry footer navigation. So, the breadcrumb pagination wouldn’t be redundant.
In fact, I find it very helpful being able to see the page number at the top. I could change the location of the navigation links, but it works better at the bottom and encourages people to click through to the next page once they’ve scrolled down and seen my post excerpts.
Also, as it stands, for the StudioPress eleven40 Pro theme anyway, the only breadcrumb I’m seeing when I click ‘Older posts’ at the bottom of my full-content post on the homepage and go to the next page is ‘Home.’ When I’m on page 2, I’m not home; I’m on page 2.
The ‘Home’ breadcrumb isn’t a link to take me back to the homepage, and it’s not a correct description of the current page, which is an archive page of excerpts. So, it looks kind of clunky and it’s non-functional.
Because I can’t figure out how to replace ‘Home’ on my archive pages with different text, I’m going to have to disable Yoast breadcrumbs or revert to a plugin that caused some odd problems for me.
Some to note: WordPress’s built-in breadcrumbs does the same thing with the ‘Home’ breadcrumb on my archive pages. Is this a standard practice, or could something be wrong with my theme or how things are configured? It’s one of the remaining details that’s preventing me from launching my new website. I’m stuck and can’t find a solution anywhere.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] How to display buttons in entry metaIf it helps, I’m using the eleven40 Pro theme by StudioPress.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] How to display buttons in entry metaRemoved and pasted into a new discussion.
- This reply was modified 6 years, 5 months ago by ceedee123.
Forum: Plugins
In reply to: [Yoast SEO] breadcrumbs trailOn another breadcrumbs plugin I was using, it automatically assigned the second page as Page 2. The breadcrumbs were like this:
Home >> Page 5
Or whichever page. No previous pages were shown. I’ve had it like this before on another website. Since it did this without any changes made from me, I assumed all breadcrumbs would function like that.
But with Yoast SEO, my preferred plugin for breadcrumbs, it’s assigning successive pages as Home with nothing else displaying, and Home isn’t a link. It thinks all archive pages are Home.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] How to display buttons in entry metaIn Safari’s inspector tool I can move the Simple Share code to inside the entry meta paragraph tags, and I can style it with CSS from there.
I’m also able to see in the parent theme file the code where they assign a paragraph wrap to the entry meta. But I’m not sure how to address this for the child theme. If I’m successful at creating a child template and getting this to work, I’ll post the results here.
But there are gaps in my knowledge, and that’s why I keep getting stuck.
Forum: Plugins
In reply to: [Yoast SEO] How to paginate breadcrumb archivesI just noticed this:
When I click the ‘Older posts’ link at the bottom of my blog post on the homepage and go to the next page, the breadcrumb at the top says home, but the tab in my Safari browser says Page 2 of 2.
Does it do that automatically? It’s great, but I’d also love the breadcrumb to say the same thing.
:o))
Forum: Plugins
In reply to: [Yoast SEO] breadcrumbs trailI’d welcome knowing how you were able to paginate your archives. I haven’t been able to figure out how to do that.
As for what you’re describing, page 1 is an extension of home, as are all other pages in your archives. The archives are treated by the breadcrumb trail as a subset of home. So the correct breadcrumb trail is to show the paginated archives as a whole (but listed as individual pages) as having originated from home.
If you want your site visitors to see the previous page number, you can address this in the actual navigation, not the breadcrumbs. Two different functions and purposes.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Hiding current page from breadcrumbs for postsThis is what I wanted to accomplish, too. No need for the blog post title to show up as a breadcrumb. It’s repetitive since it also appears as the actual title below the breadcrumb.
But here’s a suggestion for anyone who happens to find this discussion: Replace the blog post title with something more generic, such as ‘Blog post.’ For my situation the reason I chose to do this has to do with being consistent in how categories are handled.
I have categories and tags visible on the bottom of my blog posts. Click one of them and you’re taken to a categories or tags page with blog post excerpts. The breadcrumb looks like this:
Homepage / Archive for Case updates
Click on one of the excerpts and you’re taken to the permalink page for that blog post, which looks like this:
Homepage / Case updates / The case of Casper the Friendly Ghost
You’re no longer in the archives, but the shortened ‘Case updates’ breadcrumb will take you back there if you want. But if you remove the blog post title from the breadcrumb, you have two different formats for what reads as the same breadcrumb, although it’s not since you’re not in the archives. You can add pagination to full-content permalink pages, as I’ve done, but it still breaks consistency with the breadcrumb, since you now have two formats:
Homepage / Archive for Case updates … and
Homepage / Case updatesSo, I think the best practice is to keep the blog post title in the breadcrumb or replace it with a generic description, such as ‘Blog post’ or ‘Current reading:’ or some variation.
Ha … problem resolved!
1) The 403 error wasn’t really an error. It had something to do with the WordFence plugin. When I set the firewall to learning mode, I was able to make changes without triggering a WordFence error message.
2) The format for changing the breadcrumb text was confusing because I was unfamiliar with the code. But you helped me understand how to alter this so the text displays exactly how I’d like it to.
3) For some reason the homepage title wasn’t being grabbed or recognized by your plugin. It just now occurred to me that maybe it’s trying to take the site title from functions.php. If so, I’m using a function with HTML so that I can change the color of certain letters in my site’s name. It wouldn’t know what to grab because it’s broken up into a couple different pieces.
Thanks so much for your help. None of these problems had anything to do with your plugin!!
Thank you for hanging in there with me!
I clicked a post title and took a look at the code on the permalink page. It looks like this, but with the actual names filled in:
| Category name | Blog post title
Like you said, the home link shows up in the HTML. I do see $0 right after the link and just before the span property. I don’t see it anywhere else.
I decided to uncheck the box for displaying the ‘home’ breadcrumb, and sure enough the separator that displays after the invisible/non-displaying ‘home’ link disappeared.
And I noticed that with the ‘Home’ text and link disabled, I’m seeing $0 in the HTML for all breadcrumbs. Why would ‘Home’ be disabled, though? Or is the plugin not seeing a page name for the homepage?
When I replaced htitle with ‘Homepage’ in the home box, as you suggested, the link now shows up everywhere but on the front page of my website. It’s a stylistic thing; I’d like it to display there. Just the word ‘Homepage’ and nothing else. The HTML is there, but the breadcrumb isn’t displaying.
As for my about, contact, and other pages, I don’t need a breadcrumb trail. But I do want a Homepage link, and ideally I’d like custom text that says ‘Return to homepage.’