Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1169382
    hrachovec
    Participant

    Hello:

    I’ve followed the instructions on this thread to change the generic ‘Posts by Month’ archive title into the actual Month and Year:

    https://community.theme.co/forums/topic/landmark-title-for-monthly-archives-and-category-pages/

    This all worked fine but, weirdly, there’s no space between the month and year so it reads ‘September2016’. How do I add this space in? In the sidebar it reads as ‘September 2016’ — just fine.

    Here’s the page I’m talking about:
    http://rosscontent.com/2016/09/

    Any ideas?

    Kind regards, Russell

    #1169750
    Friech
    Moderator

    Hi Russell,

    We can’t view your posts? Was it private? Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1171020
    hrachovec
    Participant

    Hello:

    Sorry, my apologies. My client asked me to schedule the post to appear later so the content disappeared off the site. It is there now:

    http://rosscontent.com/2016/09/

    Again, it’s the lack of space in ‘September2016’ that I’m trying to fix.

    Thanks!

    R

    #1171115
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    .archive .x-header-landmark {
        padding: 30px 0;
    }
    

    Change 30px to adjust spacing.

    Hope that helps

    #1193670
    hrachovec
    Participant

    Hello:

    Sorry for the slow reply on this. Your last suggestion didn’t solve the issue. I think you’re suggesting adding spacing around the whole title. I don’t want that: I want to add a space between ‘September’ and ‘2016’ where there currently is none. Hopefully this annotated screenshot helps?

    https://www.evernote.com/l/AASP-MPcPpVGzYEzOhSzOu2KDWVWBHiJGEM

    I look forward to hearing from you.

    Cheers, Russell

    #1193713
    Thai
    Moderator

    Hi There,

    Please add the following code under Customizer > Custom > Global Javascript:

    jQuery (function($) {
    	var text = $(".archive.date .h-landmark span").text(),
    		year = text.slice(-4),
    		month = text.split(year);
    	$(".archive.date .h-landmark span").text(month[0] + ' ' + year);
    });

    Hope it helps 🙂

    #1193869
    hrachovec
    Participant

    Hello:

    Yes, perfect! That did the trick — thanks so much! 🙂

    Kind regards, R

    #1193917
    Thai
    Moderator

    Glad we’re able to help 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1169382 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>