-
Hi,
this attribute with the product price, SKU, or description doesn’t work and title=”” stays empty in the code,
https://puu.sh/HxR68/4fac733b12.png
if you add a string like “abc..” it works well,
what issue could be here?
thanks
-
Hello,
Thanks for contacting us.
Could you please confirm whether you’ve set the price of the product? Also, please note that the variables like
%wc_price%
,%wc_sku%
etc.. would provide data to the title tags of the images only on the product pages, and for other pages, they will remain blank.So, you should consider adding some other variables too, in the title tag formats.
All the supported variables for the Title & ALT attributes are listed in this tutorial guide:
https://rankmath.com/kb/image-seo/#15-rank-maths-image-alt-image-title-variablesLooking forward to hearing from you.
Thanks.
Hi,
yes I have set the product price, but it still remains blank on the product page, even the prices or short_product_description are set.
Hello,
Thanks for your reply.
We might need to take a closer look at the settings. Please edit the first post on this ticket and include some of the affected URLs and your WordPress logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
thank you, data is updated
Hello,
Thanks for sharing the details. Sorry for the delay and any inconvenience that might have been caused due to that.
I checked and you had set %wc_shortdesc% for Title attributes. However, your products don’t have a short description:
I changed it to display %wc_price% as title attributes and it’s working fine:
Please check on your end and confirm. Please make sure to clear your site’s cache after making any changes and before checking. Let us know if the issue persists or if you need any further assistance.
We really look forward to helping you.
Hi,
where you can see added title attribute with an included price? I still cannot detect it
we have short product description on one category products, example one is here: https://woo.noopapildai.lt/product/purskiamas-vitaminas-d3/
or this category itself: https://woo.noopapildai.lt/vitaminai-mineralai/
I checked, %wc_shortdesc% seems still not works :/
Hello,
Thanks for getting back.
You can check the title attribute in the page source code of your products. On the product page: Right Click > View Page Source
And this feature only adds the title attributes when they are missing from the image. If there is a title attribute already set then it will not change that. The product you have mentioned already has a title attribute set:
And %wc_shortdesc%, %wc_price%, and other WooCommerce related variables will only work on single product pages. They will not work on category pages.
Hope this helps. Let us know if you need any further assistance.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi,
can you please re-check it on the live site? Because before I provided you test site,
the problem still persists, these attributes doesn’t work, – https://puu.sh/HBOsC/3140f482cc.png
If I Do %wc_price% ,
title tag remains empty – https://puu.sh/HBOty/d30b7ca7ca.png it doesn’t show product price.
sensitive data is update, please help,
thanks
Hello,
Thank you for getting back and sorry for the inconvenience caused.
Upon checking your website, I have noticed that you are using these variables within the image SEO options. Please note that the WooCommerce variables such as
%wc_price%
only apply to products and not images.This is the reason they are not working. In case you want to use the add missing title to your images you can use the variable
%title%
which will insert the post title as the title of the image used within that post/page. This is how image SEO works.If you use the price variable within your products you will notice that it works there as shown in this screenshot: https://i.rankmath.com/8OFiDB
Hope this helps. We are looking forward to helping you should you have any other questions.
May you update Rank math or create feature for us, that displays product_name in the title=”” attribute?
It looks that this would be important feature,
thanks
Hello,
Thank you for the follow-up, and apologies for the delay.
The
%title%
variable will use your product name/title if you use it in the Add missing TITLE attributes option in the Image SEO options
Here’s a screencast for your reference:
https://i.rankmath.com/r1N24dI hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘Title attribute format doesn’t work’ is closed to new replies.