Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sorting out the alignment for BuddyPress in my theme – DailyPost

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

  • @mercime
    Participant

    @mercime

    @cleaus thanks for starting a new topic per instruction. Open up your theme’s header.php file, copy all source, paste in pastebin.com, click submit, and post the generated URI here. Do the same for your theme’s index.php, page.php, sidebar.php and footer.php files.


    cleaus
    Participant

    @cleaus

    Ok here are those urls:

    Header.php: http://pastebin.com/cGNhfwc9
    Index.php: http://pastebin.com/2w5zKkKw
    Page.php http://pastebin.com/rrGTjAmk
    Sidebar.php: http://pastebin.com/dh3RXY7F
    Footer.php: http://pastebin.com/67cwFQ9S

    Thanks! :)


    @mercime
    Participant

    @mercime

    @cleaus there’s not a single code in your pastebin.com’s links for index.php, page.php, sidebar.php and footer.php


    cleaus
    Participant

    @cleaus

    Sorry, i did not realise. Here they are again:

    Index: http://pastebin.com/1GbGaU1e

    Page: http://pastebin.com/g79JRmVj

    Sidebar: http://pastebin.com/ZraRFumy

    Footer: http://pastebin.com/5Q1rHp0R

    Thanks :)


    @mercime
    Participant

    @mercime

    @cleaus there’s `get_template_part(‘content’, ‘page’ ) ;` in your page.php file which means I need the code to content-page.php file as well


    cleaus
    Participant

    @cleaus

    @mercime Hey sorry it keeps takign me so long to get back to you. Here is the link to the content-page.php: http://pastebin.com/LJuZbWBG


    @mercime
    Participant

    @mercime

    @cleaus missing codes -> lines 16-21 and 23-28 in your latest pastebin.com link for content-page.php


    cleaus
    Participant

    @cleaus

    Thats all the code that was contained on that page? Not sure what is missing?


    @mercime
    Participant

    @mercime

    @cleaus I just found out that DailyPost is hosted in WP Theme Repo and the content-page.php code has the “missing” lines, see https://themes.svn.wordpress.org/dailypost/1.0.5/content-page.php
    I see that the theme has a PRO version as well.

    So are you using the pro version or the free one from WP theme repo? If you’re using the one from the repo, you should download another copy of the theme and re-upload it manually via FTP to make sure all files are there and I will work from the code in repository. If it’s the pro version, it’s weird that it’s missing some lines which are available in the free version.


    cleaus
    Participant

    @cleaus

    @mercime As i did not use a child theme, is there any way of just replacing the old missing files with the new files i download in the new theme?


    @mercime
    Participant

    @mercime

    @cleaus I made no mention of a child theme anywhere. Let’s re-start this conversation with: where did you download your theme, WP theme repository (free version) or at theme author site (PRO version)?


    cleaus
    Participant

    @cleaus

    I am using a free version


    @mercime
    Participant

    @mercime

    @cleaus Thank you.

    Now while I set up the code necessary for BP compatibility. I suggest that you a) make a backup of your dailypost theme folder in server, b) delete the theme in dashboard Appearance > Themes, c) then re-install DailyPost theme and activate it. Your theme shouldn’t be missing lines of code per your pastebin.com, otherwise whatever code I post here might not work out at all. Although we saw that only in header.php at this time, other files might just be corrupted as well and it’s not going to a fun ride.


    @mercime
    Participant

    @mercime

    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 dailypost theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your dailypost 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:
    `<article id="post-” >

    `

    Save file.

    [Part II in next page]


    @mercime
    Participant

    @mercime

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

    Open up 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/dailypost/ 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.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Sorting out the alignment for BuddyPress in my theme – DailyPost’ is closed to new replies.
Skip to toolbar