WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fuzzie
    Member
    Posted 1 year ago #

    I have a network install with subdirs, and would like to use a custom index.php for a subdir.
    http://gulfridgecouncil.org/newsletter/
    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.
    Thanks!

  2. fuzzie
    Member
    Posted 1 year ago #

    I resolved it with a static page.

  3. fuzzie
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    This might be the answer...
    http://wordpress.stackexchange.com/a/43172

    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
    Member
    Posted 1 year ago #

    resolved, if statement worked

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.