HTML <meta> before <style>

Issues related to previewing and publishing your web site.
User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:16 pm

But I also got calls to external script SilkTide ---> Cookie Consent
Google Analytics but I can see they are moved to the end as they should be :) -Analytics

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 6:21 pm

I still think you are adding the code in the wrong section.
Please add custom meta tags in the Page Properties, not Page HTML.

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:27 pm

Pablo, I,m pretty sure I'm doing it right. See printscreens below:
1. Page HTML (only cookie consent and Analytics scripts left)
2. Meta Tags - Page Properties -User defined - added open Graph, Twitter Cards and hreflang properties

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 6:28 pm

Please share your project.

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:29 pm

Last edited by tommy888 on Fri Jun 30, 2017 6:39 pm, edited 1 time in total.

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:31 pm

Last edited by tommy888 on Fri Jun 30, 2017 6:39 pm, edited 1 time in total.

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 6:32 pm

I'm sorry I am confused by your screenshots :?
Your original question was about meta tags, but now you are adding scripts...
Can you please focus on one thing at a time?

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:32 pm

Pablo wrote:
Fri Jun 30, 2017 6:28 pm
Please share your project.
How would you like me to share it?

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:34 pm

Pablo wrote:
Fri Jun 30, 2017 6:32 pm
I'm sorry I am confused by your screenshots :?
Your original question was about meta tags, but now you are adding scripts...
Can you please focus on one thing at a time?
Ok forget about scripts. They are fine .

I only wish meta tags including Open Graph, Twitter cards and mata tags added to be in the very begging of head section after WB 12 included meta tags.

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 6:36 pm

Tips:

1. If you want custom meta tags at the beginning of the page (right after the head tags) then you will need to add them in the Page Properties.

Image

2. Scripts should always go into the Page HTML (between the head tags).

3. If you enable 'move scripts to the end of the page' then all script will be moved to the end of the script.

4. If you want my help then always share your project so I can see what you have done.

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:37 pm

See example (to achieve this result I had to enable external css - global and specific to be published separately)
Image

http://designcode.esy.es/example.png

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 6:39 pm

Tips:

1. If you want custom meta tags at the beginning of the page (right after the head tags) then you will need to add them in the Page Properties.

Image

2. Scripts should always go into the Page HTML (between the head tags).

3. If you enable 'move scripts to the end of the page' then all script will be moved to the end of the script.

4. If you want my help then always share your project so I can see what you have done.

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 6:54 pm

Pablo, thank you very much.

I restarted WB12 and changed the local published folder (alter the name). Now it published correctly after unticking publish global css and external.

The inserted in User define meta tags now publishes in a proper place.

Ok. Everything is fine now. Thank you very much.

As always excellent support.

And last question when I add anything in Page HTML (meta hreflang, not a script) will it be published after style? I'm aware when move scripts to the end is ticked scripts are published at the end of the body tag.
Last edited by tommy888 on Fri Jun 30, 2017 7:20 pm, edited 1 time in total.

User avatar
Pablo
 
Posts: 18895
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: HTML <meta> before <style>

Post by Pablo » Fri Jun 30, 2017 7:19 pm

And last question when I add anything in Page HTML (meta hreflang, not a script) will it be published after style?
Yes

User avatar
tommy888
 
 
Posts: 567
Joined: Mon Sep 28, 2009 5:41 pm
Location: Poland
Contact:

Re: HTML <meta> before <style>

Post by tommy888 » Fri Jun 30, 2017 7:20 pm

OK, I get it Pablo. Thank you very much. :)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests