Jump to content

Google Icon's Code Block Messing Up Section

Go to solution Solved by Ziggy,

Recommended Posts

The Google icon's code block on the linked site (PW - "321"     is messing Up Section 4 of this site on the homepage. While the section and alignment looks perfectly fine in editor mode, when the site is published it doesn't show any of the section properly and shoots it down the screen. The icons are placed in using code blocks and the are found on the google icon library. 

 

Any help with this is greatly appreciated, thank you in advance!

Link to comment

There's something in the way that you have this set up that is causing the problems. Can you share the code that you've used?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

@ZiggySure thing - listed below from here and edited https://fonts.google.com/icons

Code injection for header - 

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />

 

CSS For Icons

/////

.material-symbols-outlined {
  font-size: 10rem!important;
  color:#005aaf;
  position: center!important;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}

/////

Content in the code block 

<div style="text-align: center;">
<span class="material-symbols-outlined">
workspace_premium
</span>

 

Below is what is looks like in preview. 

image.thumb.png.e172c5f51af069e79b2026cad4bfbd80.png

Link to comment
  • Solution

This is likely the problem, you are missing a closing </div> which will mess everything up:

image.png.4bc3497b6299ea57813cdfdfbcdfae52.png

Here's the correction:

<div style="text-align: center;">
  <span class="material-symbols-outlined">
    workspace_premium
  </span>
</div>

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
1 minute ago, Patterson said:

Thank will certainly do it, thanks again for the help, it is much appreciated. @Ziggy

Happy to help!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.