Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML newbie – q editing /activity/index.php


  • Sophie
    Participant

    @sophiew

    Hi there. I’m trying to learn as I go and apologize for being completely clueless. I’ve followed the steps of installation but got stuck on the appearance. Step 3 of the ‘Making Your Theme BuddyPress Compatible’ as it seems that my page is not quite aligned correctly. Following the instructions this is what I’ve got:

    The instructions: open up the page.php file (if this does not exist use index.php). Make note of the HTML template structure of the file, specifically the

    tags that surround the content and sidebar. You will need to change the HTML structure in the BuddyPress templates that you copied into your theme to match the structure in your page.php or index.php file. The files that you need to edit are as follows (leave out any folders you have not copied over in step two):
    • /activity/index.php
    • /blogs/index.php
    • /forums/index.php
    Etc, etc

    My Flexibility theme has a section that looks like that:
    :
    `

    <?php`

    And looking for the index.php of the buddy press template all I can see that looks relevant is:
    `

    `
    So, am I supposed to insert the first bit into the second bit: something like:
    `

    `
    I don’t know HTML script so I’m shooting in the dark here and worried to mess up my website. Do the spaces between the lines matter – like single spacing or double spacing and indents? :/
    Sorry :(

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

  • Sophie
    Participant

    @sophiew

    Oh darn – the HTML didn’t show up in the post :( *starts banging head against a brick wall*


    Roger Coathup
    Participant

    @rogercoathup

    @sophiew – you can use backticks around your code to make it show up in the thread.

    It’s probably not a good idea to try and rework your theme if you are newbie to HTML. They can be reasonably complicated, and also require some PHP knowledge if you are making substantial mods.

    Learning on the job is a decent approach, but an HTML primer first might be a good idea. If you want to get started straightaway, I’d suggest switching to the BuddyPress default theme and working from there.. A child theme from the default will be a lot less code changing for you.


    Roger Coathup
    Participant

    @rogercoathup

    Ps line spacing, indents, etc don’t matter.. Use as many as you need to make your code clean and readable

    @sophiew I’ve edited your post to add backticks for code display.

    I would be inclined to heed Rogers advice though, if you are inexperienced with the basics of HTML markup and PHP scripting then modifying a theme is going to prove tricky.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML newbie – q editing /activity/index.php’ is closed to new replies.
Skip to toolbar