Jump to content

HTML Code Block Moving After Saving

Recommended Posts

I am trying to create bios within light boxes for my website. I have been able to do this successfully. However, after 4 bios, it stopped working. The Lightbox themselves work, but after saving and leaving edit mode, the code box is in the incorrect spot. 

I have no experience in coding for HTML and had looked up how to code most of this. Any help or advice would be much appreciated!

Here is the code that works:

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Name's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link is here" alt="Alt text here" width="568" 
     height="603" style="float:left; padding:15px;" /> <br></br>
<h4>Name is here </h4>
<p>Title is here <br> </br>
  
Bio is here <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>
</div>

Here is the code that does not work:

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Names's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link is here" alt="Alt image text" width="300" 
     height="376" style="float:left; padding:15px;" /> <br></br>
<h4>Name</h4>
<p>Title<br> </br>
  
Bio <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>

 

Link to comment
  • Replies 3
  • Views 311
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

17 hours ago, wave8756 said:

I am trying to create bios within light boxes for my website. I have been able to do this successfully. However, after 4 bios, it stopped working. The Lightbox themselves work, but after saving and leaving edit mode, the code box is in the incorrect spot. 

I have no experience in coding for HTML and had looked up how to code most of this. Any help or advice would be much appreciated!

Here is the code that works:

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Name's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link is here" alt="Alt text here" width="568" 
     height="603" style="float:left; padding:15px;" /> <br></br>
<h4>Name is here </h4>
<p>Title is here <br> </br>
  
Bio is here <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>
</div>

Here is the code that does not work:

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Names's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link is here" alt="Alt image text" width="300" 
     height="376" style="float:left; padding:15px;" /> <br></br>
<h4>Name</h4>
<p>Title<br> </br>
  
Bio <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>

 

I try the second and it works fine. What is your problem. Can you share the link to the page that has this HTML code

image.thumb.png.633298b11c7570dc0f785db935635b81.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@bangank36 The issue happens when I save my work and go to view it in non-edit mode. It displays the code box in the incorrect spot on the website and not where I had placed it in edit mode. I attached screenshot so you can see.

It's not a public website yet, would I still be able to share the link with you?

 

 

Screen Shot 2022-07-28 at 10.36.38 AM.png

Screen Shot 2022-07-28 at 10.37.04 AM.png

Link to comment
7 minutes ago, wave8756 said:

@bangank36 The issue happens when I save my work and go to view it in non-edit mode. It displays the code box in the incorrect spot on the website and not where I had placed it in edit mode. I attached screenshot so you can see.

It's not a public website yet, would I still be able to share the link with you?

 

 

Screen Shot 2022-07-28 at 10.36.38 AM.png

Screen Shot 2022-07-28 at 10.37.04 AM.png

You can share your site with the protected password if it isn't published.

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.