Jump to content

Add a title as text on top of a gallery page in Wells template?

Go to solution Solved by tuanphan,

Recommended Posts

Posted

You can use this code to bottom of Code Injection > Footer


<script>
  $(document).ready(function(){
    $('<h1 class="custom-h1">Markus Ausstellungsfotografie</h1>').insertBefore('body#collection-5702bb41859fd052a94c01d4 div#galleryWrapper');
});
</script>
<style>
  body#collection-5702bb41859fd052a94c01d4 div#galleryWrapper {
    top: 100px;
}
</style>

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

Thank  you so much, that's what I need! But I need a few small fixes. Unfortunately, now my image title and capture are also shifted down by the new line and are partially off screen when switched to single image / slide show mode, see screenshot. The user would need to scroll down a bit to see them.

singleimageview.thumb.jpg.428bf066847efd752afd6485f597a5d6.jpg

A good solution for me would be if the new title would be active only when in thumbnail overwiev mode on the gallery page. Is this possible?

Also, is there a way to align the new title in my layout? I would like to have the text aligned to the top white border of my design, as in the following screenshot.

screenshotKopie.thumb.jpeg.a25cb43b3777f291978f7b619121698d.jpeg

markus/architectureshooting
web site: http://architectureshooting.com

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.