Attempt to put og:image at start of the head, instead of bottom
This commit is contained in:
		
							parent
							
								
									5580d4b443
								
							
						
					
					
						commit
						09f845bf4c
					
				@ -1,15 +1,15 @@
 | 
				
			|||||||
 | 
					<?php $ogImage = "https://coruscating-quokka-5a905d.netlify.app/" . urlencode(get_site_url() . "/og-image?pid=" . get_the_id()) . "/opengraph"; ?>
 | 
				
			||||||
<!DOCTYPE html>
 | 
					<!DOCTYPE html>
 | 
				
			||||||
<html lang="en">
 | 
					<html lang="en">
 | 
				
			||||||
	<head>
 | 
						<head>
 | 
				
			||||||
 | 
							<meta property="og:image" content="<?= $ogImage ?>" />
 | 
				
			||||||
 | 
							<meta name="twitter:image" content="<?= $ogImage ?>" />
 | 
				
			||||||
		<?php wp_head(); ?>
 | 
							<?php wp_head(); ?>
 | 
				
			||||||
		<link type="application/rss+xml" rel="alternate" href="<?php bloginfo('rss2_url'); ?>" title="Lewis Dale's Blog" />
 | 
							<link type="application/rss+xml" rel="alternate" href="<?php bloginfo('rss2_url'); ?>" title="Lewis Dale's Blog" />
 | 
				
			||||||
		<link type="application/atom+xml" rel="alternate" href="<?php bloginfo('atom_url'); ?>" title="Lewis Dale's Blog" />
 | 
							<link type="application/atom+xml" rel="alternate" href="<?php bloginfo('atom_url'); ?>" title="Lewis Dale's Blog" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<meta name="viewport" content="width=device-width, initial-scale=1" />
 | 
							<meta name="viewport" content="width=device-width, initial-scale=1" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<?php $ogImage = "https://coruscating-quokka-5a905d.netlify.app/" . urlencode(get_site_url() . "/og-image?pid=" . get_the_id()) . "/opengraph"; ?>
 | 
					 | 
				
			||||||
		<meta property="og:image" content="<?= $ogImage ?>" />
 | 
					 | 
				
			||||||
		<meta name="twitter:image" content="<?= $ogImage ?>" />
 | 
					 | 
				
			||||||
	</head>
 | 
						</head>
 | 
				
			||||||
	<body <?= body_class() ?>>
 | 
						<body <?= body_class() ?>>
 | 
				
			||||||
	<?php wp_body_open(); ?>
 | 
						<?php wp_body_open(); ?>
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user