Skip to main content

Questions tagged [meta-tags]

The HTML meta element provides a means to add various kinds of metadata to an HTML document.

meta-tags
0 votes
1 answer
506 views

Update `theme-color` when class/theme of page is toggled

I have a Javascript toggle that adds/removes classes on the html element to change the colour/theme of my page. 1st (no class) = white, the 2nd (.dark-mode) theme is black, the 3rd (.retro) is beige. ...
0 votes
1 answer
25 views

Metatags for shopify

I'm currently working on a project where I need to fetch and display metaobjects from a specific folder in Shopify using Liquid. The folder is named "Johnson Controls" under the "...
0 votes
3 answers
517 views

Facebook LIke update through Ajax - not simple issue

I have created a video page that loads videos dynamically using a database while the files are stored on the server. A video is preloaded on the page and that data can be Liked and posted to Facebook ...
0 votes
0 answers
35 views

Image not shown on preview while sharing link on whatsapp

I am facing an issue while sharing my link on whatsapp it didn't preview image in thumbnail. <meta property="og:type" content="Product Detail" /> <meta property="og:...
28 votes
13 answers
40k views

LinkedIn not picking up og:image

For one of my websites I am using Open Graph to enrich posts shared from my website. But LinkedIn is not picking the image specified in og:image. The image is modified for the LinkedIn bot to be 200px ...
124 votes
3 answers
222k views

How to use the 'og' (Open Graph) meta tag for Facebook share

Facebook fetches all pictures from my site. I want to share only one picture which is on that page. I heard about the og meta tag, but I don't know how to put it.
0 votes
2 answers
552 views

Get content value and preceding attribute's value of all meta tags with a name or http-equiv attribute

I have the following string. $data = "<meta charset='UTF-8'> <meta name='keywords' content='your, tags'> <meta name='description' content='150 words'> <meta name='subject' ...
0 votes
0 answers
33 views

LinkedIn not displaying correct meta title and meta description for ASP.NET website

I have an ASP.NET website with separate meta title and meta description tags. These tags display the correct title and description on all websites except LinkedIn. Despite following the Open Graph ...
-1 votes
0 answers
41 views

How do embed previewers fetch Facebook URL without having the IP banned?

I get that Facebook is extremely anti-scraping. But for sites that only want to get the metadata of the URLs, (e.g. for embed previewers), how do they avoid having the IP banned? Is there a way to ...
0 votes
0 answers
30 views

Facebook Sharing Debugger reports HTTP error for Open Graph meta tags

I'm encountering an issue with Facebook's Sharing Debugger tool (https://developers.facebook.com/tools/debug/) when trying to debug URLs from my website. The debugger consistently reports an error ...
0 votes
0 answers
257 views

Shopify - using custom meta fields from the Search & Discovery App in liquid code

I'm using the Dawn theme and I'm styling the facets within facets.liquid and component-facets.css. I want to use a grid view for one of my filter types however when I change the visual_layout_class ...
0 votes
1 answer
9 views

Share info not retrieved from current page OG tags

We are trying to share job ads on LinkedIn but it only gets title and image from our start page. When we share the same ad on Facebook it looks as expected. I have also checked that our URL is not ...
2 votes
2 answers
1k views

How to include meta data in HTML tags

I plan to use a headless-CMS to manage content on my website, so a non-technical content editor will be able to independently maintain content. To assist the content editor map content between the ...
1 vote
5 answers
231 views

Get the content attribute value of the <meta name="description"> tag in an HTML string

I have the following string: $string = '<meta name="Keywords" lang="fr" content="ecole commerce, apres bac, ecole management, ecole de management, écoles de commerce, école ...
2 votes
1 answer
1k views

Viewport meta tag in NextJS 14 app router with "shrink-to-fit=yes" issue

I'm trying to make my NextJS 14 app router application scale down on any device less than 500px width, as I'm making my app responsive down to 500px wide and anything below that I want it to scale ...

15 30 50 per page
1
2 3 4 5
170