Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    16
    Member #
    38303

    How to code in a static home page in a commercial forum theme in wordpress

    My commercial theme 'forumengine' has a predefined homepage as 'threads index'; of which, displays all the recent posts in the forum.

    While that is fine, I want to add additional plugins to the home page (such as a image gallery) but for some reason any modifications to this 'threads index' page do not work. I can't insert text, any plugin, etc.

    So I figured I would just change the home page to a different page (because I am able to add plug ins on any other page that is not 'threads index.' To do so I went to options > reading > change front page to x. Whenever I try to change the front page away from 'threads index' it just automatically reverts back to 'threads index'. I can't seem to do anything about it.

    The theme creators won't help me but that I can do it myself. I just have no idea where to begin. Help!!

  2.  

  3. #2
    Senior Member DC Web Design's Avatar
    Join Date
    Jan 2014
    Location
    Washington, DC
    Posts
    128
    Member #
    38178
    Liked
    37 times
    Umm, nice username?

    Although I'm not familiar with the ForumEngine theme, I'm guessing it includes a home.php and/or front-page.php template which could be interfering with your homepage display. Although it shouldn't, according to this: Template Hierarchy WordPress Codex

    Can you let us know what .php files are included in the root theme directory? It may give a better clue.

  4. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    16
    Member #
    38303
    Thanks!!

    Here is a list of the editable content

    Templates
    404 Template
    (404.php)
    members.php
    overview.php
    settings.php
    auth.php
    Author Template
    (author.php)
    Comments
    (comments.php)
    content.php
    Footer
    (footer.php)
    front-page.php
    Theme Functions
    (functions.php)
    Header
    (header.php)
    admin.php
    customizer.php
    front.php
    Main Index Template
    (includes/index.php)
    languages.php
    members.php
    options.php
    social_auth.php
    template.php
    theme.php
    threads.php
    update.php
    widget.php
    Main Index Template
    (index.php)
    index2.php
    404 Template
    (mobile/404.php)
    Author Template
    (mobile/author.php)
    Comments
    (mobile/comments.php)
    Footer
    (mobile/footer.php)
    front-page.php
    Theme Functions
    (mobile/functions.php)
    Header
    (mobile/header.php)
    Main Index Template
    (mobile/index.php)
    mobile-template-post.php
    mobile-template-thread.php
    page-edit-profile.php
    page-following.php
    page-login.php
    page-member.php
    page-pending.php
    Search Results
    (mobile/search.php)
    single-thread.php
    Single Post
    (mobile/single.php)
    taxonomy-thread_category.php
    template-footer.php
    template-header.php
    template-profile-menu.php
    unsupported.php
    Change Password Page Template
    (page-change-pass.php)
    Edit Profile Page Template
    (page-edit-profile.php)
    Following Threads Page Page Template
    (page-following.php)
    Login Page Template
    (page-login.php)
    Member Page Template
    (page-member.php)
    Pending Threads Page Page Template
    (page-pending.php)
    Reset Password Page Template
    (page-reset-password.php)
    Authentication Page Template
    (page-social-connect.php)
    page-term-condition.php
    Threads Index Page Template
    (page-threads.php)
    page-twitter-auth.php
    Page Template
    (page.php)
    portfolio-post.php
    Portfolio template Page Template
    (portfolio.php)
    script-template.php
    Search Results
    (search.php)
    Sidebar
    (sidebar.php)
    single-thread.php
    Single Post
    (single.php)
    Tag Template
    (tag.php)
    taxonomy-fe_tag.php
    taxonomy-thread_category.php
    template-thread-loop.php
    Styles
    Stylesheet
    (style.css)

  5. #4
    Senior Member DC Web Design's Avatar
    Join Date
    Jan 2014
    Location
    Washington, DC
    Posts
    128
    Member #
    38178
    Liked
    37 times
    Ah, so you do have a front-page.php.

    That is the template that is being called no matter what you set your "static" page to. I'm sure this is full of the code that displays the forum index.

    You're going to have to do some refactoring of your theme files to accomplish this.

    Please backup your theme files before trying this:

    -Rename front-page.php to page-forum-index.php (replace 'forum-index' with the slug of the new page you create to house your forum index.

    -Make a new front-page.php and copy all the code your heart desires. This will now display on your homepage.

    Also, have you heard of bbPress? bbPress.org

  6. #5
    Junior Member
    Join Date
    Jan 2014
    Posts
    16
    Member #
    38303
    THanks again DC. I've followed your steps but I'm not quite sure what you mean by "(replace 'forum-index' with the slug of the new page you create to house your forum index." Could you please re-explain this to me? I'm very new to web design, sorry!

    Since I have already committed to this theme, I feel it would be a waste of money for me to switch to bbpress now.

  7. #6
    Senior Member DC Web Design's Avatar
    Join Date
    Jan 2014
    Location
    Washington, DC
    Posts
    128
    Member #
    38178
    Liked
    37 times
    Every page in WordPress has a slug. Like if you have a page called "About Us" the slug defaults to "about-us" and the page URL is yourwordpresswebsite.com/about-us/

    If you made a template file in your active theme folder called "page-about-us.php" that file would take precedence over the default page.php. Read more about the template hierarchy here: Template Hierarchy WordPress Codex

    Just my opinion, but bbPress would be a better overall fit for this project. I don't think a theme (which should be used for appearance, not so much function) should handle the functionality of something as complex as a forum.

    You can probably still use a modified version of the theme with it. bbPress allows you to plug in a (relatively) fully-featured forum on whatever page you want. But it's your choice.

  8. #7
    Junior Member
    Join Date
    Jan 2014
    Posts
    16
    Member #
    38303
    I made the page adjustments and transferred the code to the new .php. Now, when I look in the theme code editor (within wordpress) and it shows two front-page.php files, despite me having renamed the original. Also, with both of these files present, the theme doesn't display properly when visiting the site.

  9. #8
    Senior Member DC Web Design's Avatar
    Join Date
    Jan 2014
    Location
    Washington, DC
    Posts
    128
    Member #
    38178
    Liked
    37 times
    No idea why it would display two different front-page.php files in the theme editor when you only have one. Possibly some sort of weird caching issue but other than that I don't know what to tell you...

    Is it possible to restore the original theme files just to get things back in a working state?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com