Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Homepage in Admin option

  • Avatar of ifanatics
    ifanatics
    Member

    @ifanatics

    Hi,

    It was stated in the newest version that you can edit the homepage for the plugin in the admin section. Where is this option? I’m not seeing it anywhere.

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You have to create page templates. This only works if you are using a custom front page.

    You will need to duplicate the file page.php in your main theme folder and rename it front.php.

    Add this to the top of the page:

    `<?php
    /*
    Template Name: Home
    */
    ?>`

    Then in the admin navigate to your front page and in the right sidebar choose “Home” as the page template. This makes sure BuddyPress mobile is calling the same page as the home page.

    Create a page titled bp-mobile. DO NOT use the page template “Home” for this page just leave it as default. Then you can add whatever you like to post editor box. The main site will call your Page you specify in the reading section of the admin and the mobile theme will use your page titled bp-mobile.

    Avatar of hunsu
    hunsu
    Member

    @hunsu

    Hi,

    I’m stucked at where you said “Then in the admin navigate to your front page and in the right sidebar…”. Sorry I’m rather new with this Buddypress thingy. Would u please elaborate? Is this in Themes > Editor?

    Thanks in advance!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Go to the page you created called home in the right sidebar, you will see a section to choose a page template. Choose Home as the page template.

    Avatar of Adam
    Adam
    Participant

    @adamzfun

    Yes but what if you already have a custom template for the home page of your NON MOBILE version?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    in the plugin theme folder you will find a file front.php. Change the template name from home to match your custom page template name. It’s basically a trick, WordPress is looking for this page template because you specify it in the admin settings so whether it’s the mobile theme or the desktop theme WP wants the same file.

    Avatar of Adam
    Adam
    Participant

    @adamzfun

    Ok I think I get it – basically there has to be a front.php file in the standard, non mobile theme and a front.php file in the mobile plug in and they both have to have the same template name – ‘Home’ in my case and the front page has to be set to use that template. I was getting the mobile page turning on and off, but my custom front page for the standard web version was called home-temp.php. After I changed to front.php it seems to work.

    Avatar of Adam
    Adam
    Participant

    @adamzfun

    By the way, you can check out the site Apgeeks.com – an aerial photography forum I designed. Thanks again and sorry I had to ask so many questions.

    Avatar of Adam
    Adam
    Participant

    @adamzfun

    Well in a follow-up, the mobile home page keeps resetting back to the standard version without me doing anything. So thats a bug I think.

    I think there should just be a right panel in the page editor that allows you to select mobile theme template.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    If you have a cache plugin installed you need to disable it for mobile.

    Avatar of timparker
    timparker
    Member

    @timparker

    I have tried the steps listed to create a custom home page for mobile access, but I cannot seem to get this to work. Is there a known issue for trying this when your home page is a static wordpress page? I always seem to get the static page when I view my site from my iPone.

    Can someone list the steps needed to configure this when using a static WP page?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I’m currently updating the plugin and going to add a file to make this easier

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.