Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Pocamuffin

Member
  • Posts

    33
  • Joined

  • Last visited

Personal Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. So after some experimenting with other posts I've solved this. Solution here. Ad this code to settings/advanced/code injection See pic attached shows result <!-- Fix inconsistent blog date format on Squarespace 7.1 template --> <!-- Squarespace Forum 03-08-2021 --> <script src="https://stevenlevithan.com/assets/misc/date.format.js"></script> <script> document.addEventListener('DOMContentLoaded', function() { var dateformat = "dd mmmm yyyy"; var pubdate = document.querySelectorAll("time[datetime], time[pubdate], time.blog-meta-item--date"); for (var i = 0; i < pubdate.length; i++) { var d = new Date(pubdate[i].getAttribute("datetime") || pubdate[i].innerText); if ( pubdate[i].classList.contains('blog-meta-item--date') ) { d = new Date(document.querySelector('[itemprop="datePublished"]').getAttribute("content").split("T")[0]); } pubdate[i].innerHTML = d.format(dateformat); } }); </script>
  2. Site URL: http://alextreadway.co.uk/journal Does anyone know how to change the date format on blog pages? Right now it's: Wednesday 10.13.21 I'm in the UK so would be much better like this for example: 13th October 2021 Is there a fix somehow? Thanks Alex
  3. Hi again @tuanphan If you have a fix for this, would be much appreciated. Essentially I just want to add 35px of padding to the left except the header and grid pages? Any idea?
  4. Thanks. That's moved the date in nicely but not the line. also on other pages it hasn't moved content in - see two images here. Be great if everything could move in the same amount as the date (except grid pages which are good now)
  5. By the way this is only happening because I'm using this CSS to add a white border on the grid page... /* Flatiron: Add 8px white space between index items */ /* set the white space on each side of page */ #container-content { padding-left: 5px!important; padding-right: 0px!important; } #grid .item { margin-left:-5px; a { border: 5px solid #f8f7f6; } /* Overlay size on hover */ .wrapper { margin: 5px; } }
  6. @tuanphan Would you have a fix for this by any chance?
  7. Site URL: http://alextreadway.co.uk/journal Is there a way to add some space left of date/line on blog page so it lines up with the logo above? Thanks for the help!
  8. Hi Tuaphan, thanks for your help on this it's almost perfect. The only glitch is on mobile the Instagram logo is slightly off centre. Any way to force it to centre? Thanks again.
  9. Thanks a lot, that did it. Would you know how to change the format of the date on the blog page? Right now it's: Saturday 09.18.21
 However I'm in the UK so would prefer: 18th September 2021 Much appreciated Alex
  10. Site URL: http://alextreadway.co.uk/journal Anyone know how to hide the 'Share' button under the date on blog pages? I'm using Flatiron. Thanks!
  11. Hi, (option 2) I've added the Code Block to the footer. It's not possible to put this code block where the social icon is currently positioned. Will this work? I've added the 'IN' link to the navigation. Screen grab here showing code block position. Many thanks for your help. Alex
  12. Hi, the Instagram icon which is currently bottom right. Is there any way to move that to the top? www.alextreadway.co.uk
  13. Amazing – thanks so much! The date has changed font which is great but it's making it bold. Any way to stop it making it bold? Re Social icon – yes just to the right of the navigation at the top would be great. No idea how to do this.
  14. Site URL: http://alextreadway.co.uk/ So does anyone know how to get the social icon links at the top in the Flatiron template? Next to the navigation?
×
×
  • Create New...