Skip to:
Content
Pages
Categories
Search
Top
Bottom

editing homepage of mobile site

  • Profile photo of ds123
    ds123
    Participant

    @ds123

    hello first thank you so much for this its so critical to my community to have an easy way to access via phone

    i am in testing stages but seems to work with my buddypress 1.2.7 …. can you please tell me how to edit your code to only show certain “pages” on the homepage (under activity, members, groups) ?

    thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Profile photo of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    The pages section uses https://codex.wordpress.org/Function_Reference/wp_list_pages

    You can choose to exclude the pages you do not want listed: find the code below in either front.php or home.php depending if you are using a custom home page on your regular site.

    Then you just add the number of the pages you want excluded from the pages menu. The next version of BP will use WP custom menus and then you will be able to edit the mobile menu from the admin.

    wp_list_pages( ‘title_li=&depth=1&exclude=5,9,23’

    Profile photo of wamoma
    phos flip
    Participant

    @wamoma

    “The next version of BP will use WP custom menus and then you will be able to edit the mobile menu from the admin.”

    Not sure if my question is related or not but in the new version under the ‘menu’ option I now have a huge list of pages listed. Previously I’d set only a few to display but I can’t see how to do this in the new version. I looked in the admin but can’t see any options?

    Profile photo of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Menus are not in BP yet. Not until 1.3

    Profile photo of wamoma
    phos flip
    Participant

    @wamoma

    ok think I was getting confused between next version of the plugin and next version of buddypress!

    How do I edit the menu to only include certain pages in the meantime?

    Profile photo of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You can remove them from the template files. Currently BP uses a combination of hardcoded links, pages and component links.

    Profile photo of paragate
    ParaGate
    Participant

    @paragate

    I excluded pages a few days ago using wp_list_pages and it worked great. Then the plugin updated and there is no longer a front.php or home.php file. The theme now has the pages I had excluded. How do we exclude the pages now?

    Profile photo of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Weird, the exclude pages plugin should block any page you’ve created in the admin. I want to point out that coming very soon to BP is WP menus and then you will be able to use that to control the links.

    Profile photo of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    i tried to add support for a custom homepage, but i didnt see front.php or home.pp files in the theme/default folder.. any thoughts? thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘editing homepage of mobile site’ is closed to new replies.
Skip to toolbar