mredzovic
Forum Replies Created
-
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Blog not being indexedWhere would I go to find out if the blog is set to use static pages for the homepage/blog page?
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Blog not being indexedThank you for the reply!!
For the Canonical links, here is an example:
This page:
https://hartfordrents.com/rent/pc-laptop-rental/
…has a canonical link reflecting the same link as pasted above. (Press Ctrl+U in Chrome and search/find “canonical”. You will see it matches.Now if you look at the xml site map here:
https://hartfordrents.com/sitemap.xml
search/find “pc-laptop-rental” and it will show up with “/rent-computing-gear/laptop-rental/” in the link.That link in the sitemap is the original/default link.
The way I was able to get the canonical link to be shorter and match the actual slug/url is by editing the page, scrolling down to the Yoast SEO section, clicking advanced, and manually adding a canonical URL.Hope this helps and very much looking forward to the fixes/patches!
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Blog not being indexedI’d also like to add that there is another issue I am having with this XML sitemap generator.
I have pages that I have added custom canonical links to.
The generator does not use these links in the sitemap.
Is there a way to force it to use the custom canonical link rather than the default one?Thanks in advance!
Forum: Plugins
In reply to: [Quotes for WooCommerce] XML Sitemap showing error. Help!Email sent
Forum: Plugins
In reply to: [Quotes for WooCommerce] XML Sitemap showing error. Help!This seems to be a compatibility issue between Yoast’s XML sitemap generation & also having Quotes for Woocommerce installed.
Since I have not been hearing from the plugin author, I have corrected this error by disabling my XML sitemaps from being generated through Yoast, and downloaded Google XML Sitemap Generator. This doesn’t seem to conflict with anything and generates the sitemaps just fine.
If you are having the same issue, be sure to disable Jetpack’s XML sitemap generation as well as it seems this also doesn’t work when having Quotes for Woocommerce installed.
I corrected the issue by editing the blog post, going to Scrolling down passed the content editing to “Theme Options”, then clicking on the “Heading” tab, then choosing “Default” as “Heading Text”.
Somehow the default option went to custom.
I corrected this issue by adding the following filter to the end of the theme’s functions.php file:
add_filter( ‘get_the_archive_title’, function ($title) {
if ( is_category() ) {
$title = single_cat_title( ”, false );
} elseif ( is_tag() ) {
$title = single_tag_title( ”, false );
} elseif ( is_author() ) {
$title = ‘<span class=”vcard”>’ . get_the_author() . ‘</span>’ ;
} elseif ( is_tax() ) { //for custom post types
$title = sprintf( __( ‘%1$s’ ), single_term_title( ”, false ) );
} elseif (is_post_type_archive()) {
$title = post_type_archive_title( ”, false );
}
return ‘Archives: ‘.$title;
});Forum: Plugins
In reply to: [Yoast SEO] Sitemap showing error. Help!Carl,
That was very insightful.
Turns out that I did indeed have an empty line at the top of my functions.php.
And also an empty line at the end of my wp-config.php file.I removed those empty lines and looked for any empty spaces at the end of the top and bottom most lines of code in those files.
Uploaded them.
Purged all site cache.Still no luck.
We finally managed to setup our Staging site.
I deactivated all possible plugins and saw that the sitemap was showing fine.
Upon activating the plugins one by one, I discovered that “Quotes for WooCommerce” was the culprit.I get the following error when enabling the plugin:
“The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin”I reached out to the dev of that plugin and hopefully it can be resolved.
Figured I post it in here as well in the event that you may be able to extract something out of this that I can’t that would help resolve the issue, as well as for others that may have the same issue.
Thank you again!
Looking forward to getting this sorted!Pinal!
Thank you that worked beautifully ??
Something else came up that I’m hoping you can help with!
We’ve been having an issue with our site displaying sitemap’s.
So we’ve finally setup a staging site where our live site is cloned to.
I deactivated all of the plugins and saw that the sitemap was working.
Upon activating each plugin one by one, when activating QuotesForWooCommerce it says:“The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin”
The sitemap then stops working. When I go to the Yoast SEO plugin and try to view the sitemaps I get the following:
“This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.”Nothing shows below that message.
Is there something I should do on my end?
I have checked my functions.php file for any empty lines at the top or bottom, as well as my wp-config.php and all are well.
Tried clearing site cache, but no luck.Any guidance/assistance would be greatly appreciated!
Thanks again!
-MHey! Thank you for the reply!
I’m not entirely sure if the set & get have been inserted anywhere other than if they are in the email notification template (request-new-quote.php). That’s as far as I’ve got so far. Although I wish I were, I unfortunately am not a php pro ?? haha.
The “order_comments” is a field name that was already part of the checkout page in woocommerce. The other two (start_date & rental_term) are two I’ve added with your plug-in ??
Is there any way to get/set those values in the request-new-quote.php file alone.. so that they can display in the email notification? Or would it require modifying anything else like the functions.php file? If so, would you be so kind in assisting me?
Thanks!!
-M