Support » Plugin: bbp style pack » Some questions about child themes together with bbPress

  • Resolved tapiohuuhaa

    (@tapiohuuhaa)


    Hi

    I created child theme.
    I copied to the folder of the child-theme all changed bbPress related files by creating sub-folders

    …/twentyfourteen-child/plugins/bbpress/…

    When I looked the source code at least css has been read from the original folder:

    href=’https://www.sanaristikkofoorumi.net/wordpress/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.14-6684′

    I just ask, which files work from the child-theme folder and which not.

    I assume that template files like:

    twentyfourteen-child/plugins/bbpress/templates/default/bbpress/loop-topics.php

    would be read but how about:

    twentyfourteen-child/plugins/bbpress/includes/forums/template.php

    I have changed that and some other files in order to get rid of fixed separators (“,” and “|”).

    I just ask this because I want that existing changes would work, if I update bbPress. If needed, I edit directly source codes. If there could be possibility to use filters in order to get | separators, I would not need to change any files in includes-folder.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I just replaced all default template files with older ones + three other. Single topic view was totally broken after update and I had not interest trying to fix the new template. Maybe I missed something, but maybe nothing very important.

    Plugin Author Robin W

    (@robin-w)

    templates go in

    …/twentyfourteen-child/bbpress/…

    you don’t have the ‘/plugins’ part

    I’ll assume that this fixes your questions, but if you still have issues, then come back

    I take off the plugins part but at least WordPress didn’t find css-file from

    …/twentyfourteen-child/bbpress/templates/default/css/ folder.

    Main CSS-files are now empty, because I want to set CSS completely myself concerning bbPress plugin.

    I don’t get the new version to work properly with my templates. I must used old templates. Even if templates are old and other parts new, bbPress works. I don’t know, what I might loose.

    …/twentyfourteen-child/bbpress/…

    Didn’t work.

    /twentyfourteen-child/bbpress/templates/default/bbpress/loop-single-topic.php

    Changes had no effect so I just saved copies from original files and put changed files instead. I didn’t get everything exactly the same. Template changes cause always problems and much additional work.

    Chuckie

    (@ajtruckle)

    In my case my child theme folder is underneath the parent theme. Eg:

    /parent-theme/parent-theme-child/….

    That is how it set it up….

    Plugin Author Robin W

    (@robin-w)

    @ajtruckle – that is not how I would expect to see it – a child theme is a ‘proper’ theme it just inherits most of it’s stuff form the parent theme.

    @tapiohuuhaa

    /twentyfourteen-child/bbpress/loop-single-topic.php is how it should be set

    tapiohuuhaa

    (@tapiohuuhaa)

    ok.
    I had put wrong file structure.

    I have changed also CSS-files of bbPress – how to refer to the CSS-file

    I have changed also these:

    …includes/replies/template.php
    …includes/forums/template.php
    …includes/topic/template.php

    Plugin Author Robin W

    (@robin-w)

    the css files should go to

    /wp-content/themes/%your-theme%/css/

    the templates are no designed to be overwritten, but all the functions contain filters which is what you should use to modify.

    version 2.6 templates will be different to version 2.5, so if you have overwritten these, you may find that things don’t work as expected.

    Chuckie

    (@ajtruckle)

    In my case, this is what I actually have:

    themes/seos-video-premium (this just has folders in it)
    themes/seos-video-premium/seos-video-premium
    themes/seos-video-premium/seos-video-premium-child

    tapiohuuhaa

    (@tapiohuuhaa)

    Thank’s Robin. When I put CSS of bbPress to css-folder of my child theme, WordPress used that folder.

    I have made new versions of changed files. Some old templates worked, some not.

    …includes/replies/template.php
    …includes/forums/template.php
    …includes/topic/template.php

    In those file the only changed issues are that I defined all separators as empty. I just don’t figure, how I could use filter defining separators. I just want off all separators and set necessary spaces with CSS.

    tapiohuuhaa

    (@tapiohuuhaa)

    I reinstalled 2.6.1

    —/includes/forums/template.php

    has been changed in 2.6.1. so that there is not fixed separators for sub-forums. I took off the visibility CSS-trick, because it is not anymore needed.

    Because I don’t know how to set filters I must now edit these files:

    …includes/replies/template.php
    …includes/topic/template.php

    All other changed files work using a child-theme.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.