linus89
Forum Replies Created
-
Great that it’s being thought about!
I don’t think the BreadcrumbList will make it confusing for google, and the name of the pages/types should be there aswell, I would see breadcrumbs more as a user focused thing than have a massive seo value itself, as long as the page urls and titles have some relation to the meta titles
Ah, too bad. I think it would make sense for almost everyone to make it use the wordpress titles and names of e.g categories, custom post types etc instead of the seo titles since it just gets very confusing as breadcrumbs and will not fit in the google serps as it is right now
Hopefully it makes it into the next update
Forum: Plugins
In reply to: [Safe SVG] Remove the inline-css / hook to disable the blockI’m running the 2.2.2 version and it still outputs this in the header
<style id='safe-svg-svg-icon-style-inline-css'>.safe-svg-cover{text-align:center}.safe-svg-cover .safe-svg-inside{display:inline-block;max-width:100%}.safe-svg-cover svg{height:100%;max-height:100%;max-width:100%;width:100%}</style>Tested on multiple sites
will do the action hook for now, thanks!
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesGreat thank you!
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesYea that should work aswell, would be great!
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesGood morning,
I noticed that it will require a is_archive check for when it’s inputting the css aswell, since the archive pages for custom post types will output the css for the custom post types pages instead of archive css, which isn’t really a edge case i feel like
I’m guessing it’s here but not sure
} elseif ( ( $this->criticalcss->is_api_active() || $this->criticalcss->is_rule_manual( $rule ) ) && (strpos( $type, 'custom_post_' ) === 0 && ! $is_front_page && !is_archive()) ) {Tested it out and it works as intended now
Sorry for all the spam
- This reply was modified 3 years ago by linus89.
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesWorked, but haven’t checked if it can create any problems but don’t think it will
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesYes exactly, or is_archive works aswell, i’m not 100% sure it’s working yet, waiting for pending job on criticalcss
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesJust tested it and seems to be working correctly, will check it out a bit and get back to you
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesIt will run since its || !is_page() which returns true
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesSomething like this, since it’s running the custom post type before the is_author, is_home, and so on and is_page() returns nothing on the author page
} elseif ( strpos( $type, 'custom_post_' ) !== false && ( ! $forcepath || ! is_page() ) && !is_archive() ) {Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesI ended up reordering the posts in author so that the custom post types comes last, should work good as long as it doesn’t fetch from the last pages.
Thanks for all the help! If you make an update to the plugin maybe you can add a is_archive or is_author check for the custom post type check for the jobqueue
Best regards
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesAlright, i’m just trying to avoid adding manual entries as best i can.
Also isn’t the problem in the job queue aswell? since it’s just running a get_post_type() check and gets nothing back from is_page on the archive page and therefor assumes its making the css for the custom post type
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesI’m guessing it is because of the order this comes:
} elseif ( strpos( $type, 'custom_post_' ) !== false && ( ! $forcepath || ! is_page() ) ) { // Match custom post types and not page or page not forced to path-based. if ( get_post_type( get_the_ID() ) === substr( $type, 12 ) ) { $page_type = $type; break; } }wouldn’t a is_archive() check solve it there?
Forum: Plugins
In reply to: [Autoptimize] Criticalcss takes wrong target on author with custom post typesI have a path based rule that is added like “/author/” with no input in the css part, and the filter you provided and have cleared the old rules
The path based one worked for https://www.casivo.ca/author/noah-wilson/ but it is only because his first post is a page and not a custom post type is my guess,
Whenever i refresh https://www.casivo.ca/author/emma-johnson/ it still creates in the job queue the gambling-sites one so it seems it still have priority