Jump to content

Code Injection

Recommended Posts

Site URL: https://www.dekoninggroup.com/

Hello everyone, 

I bought a plugin from Squarestud.io and i haven't heard back from their support team for almost a week.

The plugin is a logo loading screen using the site's logo.  I was hoping increase the logo size of the logo showing on the load screen. Any help is appreciated!

Here is the code:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div class="logoload"></div>
<script>
$(function() {
  var loadLogo = $('header').find('img').attr('src');
  $('.logoload').css('background-image', 'url(' + loadLogo + ')');
});
</script>
<style>
.logoload {
  /* SET BACKGROUND COLOR */
  background-color: #00000;
  /* SET BACKGROUND SIZE */
  background-size: 90px;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-position: center;
  background-repeat: no-repeat;
}
</style>
<script type="text/javascript">
$(window).load(function() {
    $(".logoload").delay(500).fadeOut("slow");
})
</script>
Link to comment
  • Replies 3
  • Created
  • Last Reply

Hey @StephanieMemory

Try changing the background-size from 90px to a larger value such as 500px:

background-size: 500px;

 

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
On 3/11/2020 at 7:28 PM, StephanieMemory said:

Thank you @paul2009! I had been adjusting the background size but not by that much. 😳🤭

I see it worked here. Try clearing browser cache

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.