Skip to main content

All Questions

Tagged with
3 votes
1 answer
2k views

Does setting meta tags in Javascript work without server side rendering?

I am developing a single page application and each page should have different open graph meta tags. It seems that tools like react-helmet just use Javascript functions like element.setAttribute to ...
Ryan Peschel's user avatar
  • 11.7k
1 vote
1 answer
1k views

Is it possible to modify index.html before serving it using ServeStaticModule in NestJs?

I am using ServeStaticModule to send back a index.html file. I want to add custom meta tags for facebook preview. I tried doing it on the client side but that doesn't work as Facebook takes the old ...
Visakh Vijayan's user avatar
6 votes
1 answer
13k views

React JS How to disable zoom

Im building a web app and I want to disable the zoom with 2 fingers. I have tried this meta name="viewport" content=" width=device-width, initial-scale=1, maximum-scale=1, user-...
Solyza's user avatar
  • 75
0 votes
0 answers
500 views

og meta tags are not loading while sharing the url on somewhere

I am new to reactjs. I want to build the dynamic meta tags for the growth of SEO. I am writing the meta tags in my main page of the project but while sharing those tags are not loading.On inspecting I ...
sahithi naik's user avatar
1 vote
3 answers
6k views

VueJS router meta data

I'm trying to change the title and description, tweeter, fb, ig meta tags for an app in Vue JS (single page app ) I successfully got the title to change from page to page by setting it in the meta ...
Francisco Arias's user avatar
0 votes
2 answers
1k views

Turn Js Variable into Meta data

in the head section I have a js: var product = { ProductID: '97087', Thema: '18', CategoryID: '49', Region1: ['21'], ...
Tom tom's user avatar
  • 331
1 vote
1 answer
1k views

Is it ok to add meta tag in head using jQuery? [duplicate]

I want to add meta tag conditionally in an HTML page, i am not sure if it is ok to do so or not using jQeruy ready even. The example is given bellow. var myHost = window.location.host; if(myHost....
Gulzar Yousaf's user avatar
1 vote
1 answer
123 views

How to change the page url without reloading the page

I want to know how can I change the page URL without reloading the page or changing the page content. I already use that code (JavaScript): if(history.pushState){ window.history.pushState("object ...
Adel Tube's user avatar
0 votes
1 answer
1k views

How to implement http-equiv/refresh with POST request?

<meta http-equiv="refresh" content="99" /> The above html automatically refreshes a page after 99 seconds. I tried to use it for a POST request to prevent a timeout error. However, it doesn't ...
pandichef's user avatar
  • 766
0 votes
2 answers
203 views

How do I convert the "name" and "content" attributes of specific meta tags into a JavaScript object literal?

I have several meta tags that look like this: <meta name="Addan:id" content="2098949824982" /> <meta name="Addan:name" content="Addan Salahehin" /> How do I convert these meta tags (...
user avatar
1 vote
1 answer
233 views

How to set meta description in Sails JS 1.0

How to set a meta description tag in a Sails JS version 1.0 app for SEO optimization? I have a web app but the indicization in Google is not respecting what I want. The description under links are ...
Dave's user avatar
  • 2,072
0 votes
0 answers
185 views

Stop meta refresh after a period of time

Ok. I know this is a dumb question. I am working on these webcams for the different stores to put on our intranet site. Here's the problem, trying to use the javascript code, the images don't ...
Jakeman's user avatar
  • 73
0 votes
1 answer
58 views

Edit head section thorough body

I want to add this meta tag in the head sction: <meta name="p:domain_verify" content="somerandometext2"/> Unfortunately, I don't have access to the head section, and I want to do it through ...
Leo's user avatar
  • 1
2 votes
1 answer
235 views

Dynamic og:image with Variables from original page

I've struggled to find any resources regarding this topic online so I thought I would start a discussion. I'm curious how to make the og:image be dynamic depending on the data present from the ...
Charlie Simon's user avatar
2 votes
4 answers
2k views

Responsive webpage without meta tag?

I'm guessing the answer is no but is there a reliable way to make a webpage responsive without adding a viewport meta tag to the head? I have added a login form container that's 400px wide and ...
Jeff's user avatar
  • 495

15 30 50 per page
1
2 3 4 5
9