tinzion
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to add title attribute in image on my product category pageHi Three Sons
I tried to insert the code on the link but however not solve my problem
add_filter('wp_get_attachment_image_attributes', 'change_attachement_image_attributes', 20, 2); function change_attachement_image_attributes( $attr, $attachment ) { // Get post parent $parent = get_post_field( 'post_parent', $attachment); // Get post type to check if it's product $type = get_post_field( 'post_type', $parent); if( $type != 'product' ){ return $attr; } /// Get title $title = get_post_field( 'post_title', $parent); if( $attr['alt'] == ''){ $attr['alt'] = $title; $attr['title'] = $title; } return $attr; }
here’s the sample product category page link: https://weedsmart.net/product-category/vapes-thc/
You can see the category image have alt but no title attribute, hope you can help me with this
Hi @rankmath how about our client don’t use cache plugin? I tried the first step but the second? as per checking on his plugin can’t find any cache plugin in
Forum: Plugins
In reply to: [WP Recipe Maker] How to add title attribute in rating imageHi Brecht can you share with me how to hook it? to add title attribute in image rating. thank you fast response
Forum: Plugins
In reply to: [WP Responsive Menu] Font file slowing down page loadingI have same problem too. Do we have solution to resolve this issue?
Forum: Plugins
In reply to: [WP Responsive Menu] Preload key requestsI have same problem too.
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingHi Devnihil already did that but it does not appear the <meta name=”twitter:site” content=”@YOURUSERNAME” /> in first when you put the username it will appear on the site but when you try it on incognito it will not appear also when I clear the browser cache. do I need to use the cache plugin?
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingHi Michael TIna
I’m looking for this metadata “twitter:site The twitter handle of the site owner/operator.” it’s not appearing on my page source
I already set up twitter username in the social account in setting
- This reply was modified 4 years, 5 months ago by tinzion.
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingHi Devnihil sorry for that but I inspect my site https://www.fitzgeraldhr.co.uk/ the <meta twitter:site content=”@fitzgeraldhr”> is missing or not present can you help me with this?
- This reply was modified 4 years, 5 months ago by tinzion.
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingI figure out it now Thank you for your assistance
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingH Michael Tina
I’m looking for:
<meta name=”twitter:site” content=”somecontent” />
I just add the twitter site on the social account in setting
Hope you can help me with this
Forum: Plugins
In reply to: [Yoast SEO] Auto Generate Twitter Card (Title & Description) MissingHi, Pcosta88 also I have a website https://www.fitzgeraldhr.co.uk/ twitter site meta is missing even I set up the twitter account on the backend?
https://www.santmoritz.com/sitemap.xml
https://www.santmoritz.com/fr/sitemap.xml
https://www.santmoritz.com/es/sitemap.xml
https://www.santmoritz.com/ca/sitemap.xmlI see there are different sitemap.
Should I add this all sitemaps in robots.txt?
Ok Thank you very much Sybre
Hi Syrbe
I follow your instruction but I got critical error when I paste this code on my functions.php
// PHP7+ pseudo code
if ( ( $this->robots_meta()[‘noindex’] ?? ” ) === ‘noindex’
&& $this->get_current_canonical_url() === $this->get_current_permalink()
)
$canonical_url = ”;is there something wrong with this code?
is it because of “Disallow /*?” on my robots.txt? or can I remove these meta robots? or can I change the canonical link to itself or even remove it? since my SEO Tool said, “Pages with robots directives preventing indexing should not contain a canonical link pointing to another page.”