Skip to main content

All Questions

Tagged with
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
-1 votes
2 answers
205 views

Website not resizing to mobile correctly (meta values in place)

I'm setting up a basic website, and when I view it on mobile, it opens zoomed in, instead of showing the full width of the mobile CSS (480px). I have already gone through setting up the meta ...
Scott's user avatar
  • 3
1 vote
1 answer
2k views

How to change the meta tag images when sharing a post in social media depending on the url with jquery?

I need to find a way to change the meta tag content images in the tag of the HTML page depending if the url matches a certain word. I was able to change the meta tag content images to share the ...
Manuel Abascal's user avatar
3 votes
1 answer
316 views

Jquery data table not work properly after add meta tags

I have a website which must be responsive for mobile phones. I've created it using my desktop. When I adjust browser windows it's working perfectly for mobile phone but when I check it on my real ...
jhone's user avatar
  • 85
1 vote
1 answer
541 views

Get site titles / descriptions for multiple urls

I'm trying to grab the favicon, site title and descriptions of a list of external urls, ideally with jquery. I've successfully worked out to sync up googles favicon service for my urls, can anyone ...
Joel Rosen's user avatar
1 vote
1 answer
827 views

meta tag content not changing with jquery

I have a problem. I have used jQuery for meta content change, but meta content not changed. How to change meta content with jQuery. Thanks! <!DOCTYPE html> <html lang="en"> &...
user avatar
0 votes
0 answers
116 views

How to make og:image and og:title for Facebook refreshed

I want to make a website that if everyone pasted my URL in Facebook comments, my website show different og:image and og:title each comment. I generated different og:image and og:title with PHP each ...
Engkus Kusnadi's user avatar
2 votes
1 answer
1k views

Is it advisable to update google meta tags dynamically? Does google update meta tags like description and title if it is update via an ajax request?

I am not using Angular or any js framework. Only updating title and description after the ajax request is fired with the dynamic information. I can see that after 2-3 weeks, few of my pages have this ...
user avatar
1 vote
1 answer
2k views

Q: Selecting og:image with javascript

I'm selecting my faceboook og:image with javascript with: $('head').append('<meta property="og:image" content="calculatedImageURL">'); I can see that the tag appears in generated source but no ...
Endika Hernando's user avatar
0 votes
0 answers
167 views

Facebook og Meta Tags - $('meta[property="og:title"]').attr('content', 'Pasta la vista'); not working

I have an AJAX website that I want to be able to post pages to Facebook, and I'm having trouble dynamically changing the og meta tags. There are a lot of Stack Overflow threads concerning this, ...
rpivovar's user avatar
  • 3,340
0 votes
2 answers
572 views

Refresh meta tag's content change in html from js not working in firefox

I am modifying content of meta refresh tag but when page is refreshing its not redireting on new Url. <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js">...
Abhay's user avatar
  • 135
0 votes
0 answers
2k views

Changing robot meta tags with JavaScript and jQuery

I have a strange problem. I have pages with sports events, the events have dates of when they are played (h1). What I'm trying to accomplish is: when the event has ended, the page will change to ...
Rodrigo Viola's user avatar
1 vote
1 answer
326 views

Wordpress and jquery autocomplete meta keys

I've been trying with no sucess to add a autocomplete in my wordpress. In my functions.php: // Loads files with autocomplete wp_register_script( 'jquery-ui', get_template_directory_uri() . '/js/...
Tatiana's user avatar
  • 31
2 votes
2 answers
308 views

Return Meta Tag as String

I am trying to return this meta tag: <meta name="viewport" content="width=device-width, initial-scale=1"> So when the mobile page is displayed you will see that tag on the page. How do I ...
Manny Sran's user avatar

15 30 50 per page