Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. style numbers

style numbers

Scheduled Pinned Locked Moved General Discussion
carouselcarousel addoncustom
3 Posts 2 Posters 108 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pauljuergens
    wrote on Dec 5, 2022, 3:18 PM last edited by
    #1

    Hi There, I am trying to style the numbers of the carousel and instead of 1/4 I wanna have 1 4
    but its not working…

    is there any way?

    <script>
    window.laytheme.on('newpageshown', function(){
    jQuery('span.numbers').html(function() {
          return jQuery(this).text().replace('/', '  ');
        });
    });
    </script>
    
    J 1 Reply Last reply Dec 5, 2022, 4:42 PM
    0
    • P pauljuergens
      Dec 5, 2022, 3:18 PM

      Hi There, I am trying to style the numbers of the carousel and instead of 1/4 I wanna have 1 4
      but its not working…

      is there any way?

      <script>
      window.laytheme.on('newpageshown', function(){
      jQuery('span.numbers').html(function() {
            return jQuery(this).text().replace('/', '  ');
          });
      });
      </script>
      
      J Offline
      J Offline
      Johan Saj
      wrote on Dec 5, 2022, 4:42 PM last edited by
      #2

      @pauljuergens Hi ! I think you need to use a html caractere for this like this:

      <script>
      window.laytheme.on('newpageshown', function(){
      jQuery('span.numbers').html(function() {
            return jQuery(this).text().replace('/', '&nbsp;');
          });
      });
      </script>
      

      I don't know if it's gonna work but you can try it!

      P 1 Reply Last reply Dec 5, 2022, 5:01 PM
      0
      • J Johan Saj
        Dec 5, 2022, 4:42 PM

        @pauljuergens Hi ! I think you need to use a html caractere for this like this:

        <script>
        window.laytheme.on('newpageshown', function(){
        jQuery('span.numbers').html(function() {
              return jQuery(this).text().replace('/', '&nbsp;');
            });
        });
        </script>
        

        I don't know if it's gonna work but you can try it!

        P Offline
        P Offline
        pauljuergens
        wrote on Dec 5, 2022, 5:01 PM last edited by
        #3

        @Johan-Saj I just tried and it also didn't worked… but thanks!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes

        3/3

        Dec 5, 2022, 5:01 PM


        I also code custom websites or custom Lay features.
        💿 Email me here: 💿
        info@laytheme.com

        Before you post:
        1. When using a WordPress Cache plugin, disable it or clear your cache.
        2. Update Lay Theme and all Lay Theme Addons
        3. Disable all Plugins
        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

        This often solves issues you might run into

        When you post:
        1. Post a link to where the problem is
        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
        Online Users
        F
        felix_rabe
        21 minutes ago
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search