[resolved] Custom index.php for Subsite (5 posts)

  1. fuzzie
    Posted 3 years ago #

    I have a network install with subdirs, and would like to use a custom index.php for a subdir.
    I've tried creating a page-newsletter.php that gets rid of sidebar1.php, but that page won't load.
    My reading setting is latest posts, although I've tried using a static page called newsletter. Didn't work.

  2. fuzzie
    Posted 3 years ago #

    I resolved it with a static page.

  3. fuzzie
    Posted 3 years ago #

    Well, I thought I had solved it, but the static page doesn't give me what I want.

    I'm trying to mimic this: http://www.boyscouting.com/Calendar/NewsandEvents.aspx

    here: http://gulfridgecouncil.org/newsletter/

    I thought I just copy my theme page.php file, rename the copy page-newsletter.php, edit that file to remove the reference to sidebar1.php and then customize the loop to generate the content.
    For whatever reason I am missing, that is not working.
    Any help is greatly appreciated.

  4. fuzzie
    Posted 3 years ago #

    This might be the answer...

    But not what I really want to do.
    Can I add an if statement to the theme index.php page to check if it is the /newsletter subdir, and if so, redirect it to index-newsletter.php?

  5. fuzzie
    Posted 3 years ago #

    resolved, if statement worked

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.