WordPress.org

Support

Support » How-To and Troubleshooting » Modding the theme.

Modding the theme.

  • I am working with antisnews at this (mu) multisite installation: http://thecitiesfullof.us using subfolders.

    In magazine mode, the theme has 4 category feeds to the right and mid section. The top two display only one post, the bottom two display three.

    I located that in the folder /includes/ there are featured php files that appear to contain all of the relevant information. I am not a php guru, nor theme dev but from what i can see, swapping those around (with a bit of minor code editing) should function and work. Does that make sense to anyone else here?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi … funny you bring this up, as I am dealing with both “featured3.php” and “featured5.php” on another desire.

    What you are looking for is on line 8 of the code.

    Change this:
    <?php if(!isset($featured3howmany) || empty($featured3howmany)){$featured3howmany=1;} ?>

    To this:
    <?php if(!isset($featured3howmany) || empty($featured3howmany)){$featured3howmany=3;} ?>

    This will allow you to display the last three posts. I’ve already modified mine, and you are welcome to check it out at http://superstitiondistrict.net/ (I’m in the process of preparing the site to be revealed at the beginning of Feburary.

    The challenge I am working on right now is trying to figure out how to make the thumbnail images for featured3.php and featured5.php to match featured4.php and featured6.php. I can resize the space in the scripts, but can’t figure out how to move them to the left of the posts vs. being on top.

    Hope this helps!

    Well … it appears my response was a little late (I just checked out your site). Will you be willing to share your code for how you were able to accomplish what I am struggling with on fe..3.php and fe..5.php, as described above? You have it exactly how I would like mine to work.

    Kind regards,

    Lane

    I don’t mind at all, however I don’t think I’ve really done much debugging.

    I replaced Featured 5 with the Featured 6 php file and rebuilt its numerical references only by category or by 5’s structure (picking it apart some).

    As always, backup the files…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Hope this helps.

    E

    Updated url here for the template I am working with…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modding the theme.’ is closed to new replies.