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

david.svoboda

Circle Member
  • Content Count

    1
  • Joined

  • Last visited

Recent Profile Visitors

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

  1. Can anyone advise me on how can I access the month name inside the Event thumbnail so I can change the string to another one (localised to the language not currently supported by SQSP)? (see the picture) I managed to change most of the date instances in Events and Blog pages via datetime handle, but being a non-programmer I struggle with that thumbnail. Basically all I need is a function that will return a number of the month mentioned in the thumbnail (e.g. "3" for "MAR") --- missed bit od code marked below as ******* <script> var month=new Array(12); month[0]="LED"; month[1]="ÚNO"; month[2]="BŘE"; month[3]="DUB"; month[4]="KVĚ"; month[5]="ČER"; month[6]="ČVC"; month[7]="SRP"; month[8]="ZÁŘ"; month[9]="ŘÍJ"; month[10]="LIS"; month[11]="PRO"; Y.use('node', 'node-load', function(Y) { Y.on('domready', function() { Y.all('div.eventlist-datetag-startdate--month').each( function() { var mdate = new Date(this.getAttribute(************)); this.setHTML(month[mdate.getMonth()]); }); }); </script> *thanks*
×
×
  • Create New...