How to modify the Modularity Lite 1.2 from Graph Paper Press

If you don’t know this theme yet, you should check it out at Graph Paper Press.

Modularity Lite is Thad Allender’s freebie version of a larger framework. I was customising this theme for Jerry Hyde’s site recently, and thought I’d take some notes to share with you.

UPDATE January 2011: This article gained a lot of attention since it came out in January 2010. Code changes dramatically with each release, which is why I’ve written an updated version for Modularity Lite 1.3. This article is about version 1.2. Tweaks may NOT work in later versions.

How to add your own Background Image

The background image gets loaded via the style.css file in the following line of code:

The full path to the default background image is wp-content/themes/modularity-lite/images/bg.jpg. Change it to your heart’s contempt!

How to add your own Logo or Header

have a look at the header.php file and find the following section:

<!-- Begin Masthead -->
<div id="masthead">
<h4><a href="<?php echo get_settings('home'); ? rel="nofollow">/" title="Home"><?php bloginfo('name'); ?></a> <span><?php bloginfo('description'); ?></span></h4>

Delete the <h4> and <span> tags and replace them with a link to your logo like this:

<div id="masthead">
<img src="">

If you’d like that logo to link to your home page, wrap it in a link like this:

<div id="masthead">
<a href="<?php echo get_settings('home'); ? rel="nofollow">/" title="Home">
<img src="">

Image Sizes

If you’re hosting images in places other than your website (say Flickr) you may find that those images are too big for your layout. Rather than fiddle with that, let’s have imgaes automatically resize when they’re wider than your theme.

Have a look at the style.css file and find the /* Floats & Images */ section, under which you’ll find these three declarations:


The last value on each line ends with


Change that to a smaller value and your images will be resized automatically. You may also want to add


to each line so your images don’t get squashed. I don’t know which image alignment you’re using when you embed an image, so for safe measure, amend all three of them. As an example, here’s the first line of code in its entirety changed to 500px width:

img.centered{display: block;margin-left: auto;margin-right: auto;max-width:500px; height: auto;}

Slowing Down the Slideshow

The slideshow is generated in Java Script. Have a look in your functions.php file and look for a code block under the heading // Load Dom Ready Javascripts – it looks like this:

In it, you’ll find two parameters:

  • SPEED which is in fact the cross fade duration,
  • and TIMEOUT which is the duration of each slide.

1000 is about 1 second, 2000 is 2 seconds, and so forth. Play with those and see what happens. If you’d like cuts instead of corss fades, change the SPEED parameter to 1. The PAUSE parameter doesn’t seem to do anything so leave it alone.

About Jay Versluis

Jay is a medical miracle known as Super Survivor. He runs several YouTube channels and websites, and he's also live on Twitch sometimes. To support him on his mission to make the world a better place, you can support him on Patreon or buy him a coffee.

155 thoughts on “How to modify the Modularity Lite 1.2 from Graph Paper Press

  1. Hi Jay

    I hope you’re doing well.

    My blog is up and running now and seems to be working fine for the basic need I have of it. One question I do have for you if you can help is, how do I create a mailing list or something similar. So that whenever I update my blog etc. everybody who wants to be advised, receives an e-mail?

    If you could let me know that would be great.


    YBB (now from Toronto, Ontario Canada)

    1. Hello Toronto – how are you doing tonight?

      The easiest way to get this going is via Feedburner. That’s a Google service which reads your site’s RSS feed and generates a new one. It does a lot of other magic like notify search engines when you post, send tweets automatically and let visitors subscribe via email. You can sign up at and have a play. I use Feedburner on all my higher traffic sites (including this one – the box in the sidebar is a piece of Feedburner code for example).

      You can also replace your current feed with the new Feedburner feed – some Themes offer this functinoality, but there’s also the Feedburner Feedsmith plugin which does that for you. The advantage is that it takes some load off your server – but you don’t have to go that far if all you want to use is the mailing list function.

      Have fun πŸ˜‰

  2. im running Modularity Lite and had the slide show running fine when i went to resize my photos it stopped running how can i get the slide show back

    1. Are you running Version 1.3? Have a look at this article I’ve written for it.

      Check what size you’re using for your images: Slideshow images MUST BE exactly 950Γ—425 pixels or larger. Smaller images won’t show up.

  3. Hi Jay.

    Thanks for your help a while ago.

    Have another quick question for you;

    How can I add a link to a specific page (such as to a post) that can only be displayed when the admin is logged in?

    Eg. when the admin is logged in to the WordPress backend, quite a few themes will display ‘Edit’ under each post etc on the front end of the site, but obviously no other user will see that.

    I would like a link to do the same thing for a link so only the admin can see it and click on it from the front end.

    Look forward to hearing your reply.



    1. Hi Jason,

      there’s a built-in WordPress function called edit_post_link() which handles that. It displays the “edit” option only when you’re logged in and nothing if you’re not logged in. Modularity Lite supports this at the bottom of every post. You can add this anywhere you your blog where you can execute PHP.

      Here’s the default usage:

      <?php edit_post_link('Edit this post', '<p>', '</p>'); ?>

      Hope this helps πŸ˜‰

    1. Excellent, glad you’ve sussed it out.

      For those of you who haven’t, you can add the “fixed” parameter to your body definition like so:

      background: url('yourpicture.gif') fixed no-repeat center;

      Take the “fixed” out and the background will scroll up and down.

  4. Hi Jay,

    Thanks for the blog. Wondering if you’ve run into this problem with Modularity Lite: The post images on the main page are not linkable…only the title for each post. Any way around this? Each reference image is indeed set to link to the post page.
    Thanks in advance,

    1. Hi Donna,

      I’ve just had a look at your link and those images do link fine to the relevant posts. Maybe you’ve already fixed the issue (in which case: well done ;-)) or if the problem still persists try to clear your browser cache. Works wonders sometimes.

      All the best from London!

  5. Hi Jay

    As your previous helps worked out, I would like to ask if it would be possible to divide the blog posts in to 2 or 3 columns in the home page in modularity lite theme instead of the normal blog look. As index.php pulls blog.php I tried to change the loop into column in blog.php but didn’t work properly. If you have any idea, it would be a great help once again.

    Thnx for all the great resources

    1. Hi Nitin,

      that’s a great thought indeed. I can see this working really well for Modularity Lite. Unfortunately it also means a major rewrite of the theme – I’m not sure if I can help with that. Let me think it over though πŸ˜‰

  6. Have you ever tried to get the slideshow to source images from pages instead of blog posts?

    1. I haven’t… and I wouldn’t know how. Technically a page and a post are the same thing to WordPress, so maybe you just tell Modurality Lite the exact page ID’s you’d like to use for images. But then, that’s just a thought.

      Instead I suggest using the static slideshow option as explained in this article (for Modularity Lite 1.3).

  7. Thanks for all your comments and input on this post.

    Since this is the thread for the 1.2 version I’m going to close this comments section now. I’ve written an article for a newer version of Modularity Lite 1.3 – check it out here.

Comments are closed.