Skip to:
Content
Pages
Categories
Search
Top
Bottom

Theme issue – Page alignment


  • mumbaipav
    Participant

    @mumbaipav

    I am finding it tough to fix pages in my website. I am using Snapwire theme by Gabfire company

    Here is link to Buddypress Activity page
    http://www.mumbaipav.com/activity/

    All pages that use BP have lost alignment.

    Please help me fix the issue.
    Thanks and appreciate help.

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

  • Tammie Lister
    Moderator

    @karmatosed

    By alignment do you mean you want them to align to the left or right? Or do you mean you don’t want the page full width like it is. You have no styling on:

    ‘#main_content’

    This probably is the cause of a lot of your issues if want that to control everything in it.

    It’s a little hard to work out though what exactly you do want so if you could clarify please that would be great.


    @mercime
    Participant

    @mercime

    @mumbaipav initial scan of your theme’s source code looks like you only need to create two files to complate Step 3 of the BP Compatibility process. Open up your theme’s header.php file, copy all code, paste in pastebin.com, click submit and post the generated URI here. Do the same for index.php, page.php, sidebar.php and footer.php


    mumbaipav
    Participant

    @mumbaipav

    I appreciate quick response. Let me give more details of the problem

    Please check below links

    With right sidebar
    http://www.mumbaipav.com/2012/08/15/interview-with-aseem-singh-portrait-landscape-photographer-from-amritsar/

    Without sidebar
    http://www.mumbaipav.com/about/

    So in non-BP pages I am able to keep sidebar in rightside or remove it completely if required

    Whereas in BP pages sidebar is not in place, also I am not able to remove it completely. I would like to have both option. Keep sidebar in right side when required or remove it completely

    Here is my BP page With sidebar displaced at the bottom
    http://www.mumbaipav.com/members/mumbaipav/

    Thanks


    @mercime
    Participant

    @mercime

    @mumbaipav you have activated the BP template pack plugin and need to complete of fix wrong implementation of Step 3 compatibility process. So as mentioned above

    Open up your theme’s header.php file, copy all code, paste in pastebin.com, click submit and post the generated URI here. Do the same for index.php, page.php, sidebar.php and footer.php


    mumbaipav
    Participant

    @mumbaipav

    @mercime please find below links

    header.php http://pastebin.com/SbbaV8mA

    Main Index Template (index.php) http://pastebin.com/PaGQzkck

    page.php http://pastebin.com/4pMVHhZH

    sidebar.php http://pastebin.com/fTJcHjrg

    footer.php http://pastebin.com/HVC3WuEf

    Thanks


    @mercime
    Participant

    @mercime

    == I would like to have both option. Keep sidebar in right side when required or remove it completely ==

    @mumbaipav looking over your files, you’d have to make a decision, it’s either

    A. Create only two files (which I can post later) and upload to snapwire theme folder in server for either
    1. All BP templates with sidebar, or
    2. All BP templates no sidebar

    OR

    B. Revise 16 BP Template files for some BP templates with sidebar and some with no sidebar (full-width)

    Btw, should you opt for full-width either way, post code of full-width page in pastebin.com


    mumbaipav
    Participant

    @mumbaipav

    @mercime apologies for delay in responding

    I would like to keep all BP pages with sidebar.

    I really appreciate your help. Thank you once again!


    @mercime
    Participant

    @mercime

    @mumbaipav Based on the HTML structure of your theme, you will be only need to create two new files, header-buddypress.php and sidebar-buddypress.php to make the BP templates compatible with your theme.

    If you’ve revised any of the BP template files transferred to your snapwire theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your snapwire theme folder in server – /activity, /blogs, /forums, /members, /groups, /register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.

    A. COPY your theme’s header.php and Save As > header-buddypress.php

    Open up header-buddypress.php and at the BOTTOM of the file, below other code contained within, add this:
    `

    <div id="post-” >`

    Save file.


    @mercime
    Participant

    @mercime

    B. COPY your theme’s sidebar.php file and Save As > sidebar-buddypress.php

    Open up the blank sidebar-buddypress.php file and at the very TOP of the file above other code, add this:
    `

    ‘;

    `

    Save file.

    C. Upload header-buddypress.php and sidebar-buddypress.php to your theme folder in server wp-content/themes/snapwire/ in the same directory where your regular header.php and sidebar.php files are

    D. Final note: Copy the style modifications for some BP elements https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.


    mumbaipav
    Participant

    @mumbaipav

    @mercime Thank you for all help and support! This has fixed the issue. I really appreciate the help.

    I have question regarding sidebar – if I am not wrong it is showing Default sidebar. Is it possible to select which sidebar to show on BP pages ?

    Thank you once again!


    @mercime
    Participant

    @mercime

    @mumbaipav you’re welcome. Sure you can use a different sidebar. For example you have a sidebar-mumbaipav.php, you copy that file and Save As > sidebar-buddypress.php then add the codes I posted above at the very TOP and at the very BOTTOM of that new file and upload to server.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Theme issue – Page alignment’ is closed to new replies.
Skip to toolbar