Skip to:
Content
Pages
Categories
Search
Top
Bottom

CSS code for integration of BuddyPress with DW Question & Answer

  • @margmacd

    Participant

    Hello

    I am in the process of following the instructions at https://www.designwall.com/guide/dw-question-answer-plugin/buddypress-integration/ for integration of BuddyPress with DW Question & Answer. As I do not host my own site, there are issues about me editing my functions.php file or even creating a child theme functions.php file. I would like instead to add code using the Additional CSS area in my dashboard. However, when I copy-paste the recommended code

    include_once get_template_directory().’/buddypress/bp-custom.php’;

    into this area, multiple errors are reported as follows:

    Expected LBRACE at line 5, col 14
    Unexpected token ‘get-template_directory(‘ at line 5, col. 14.
    Unexpected token ‘)’ at line 5, col 37.
    Expected INDENT at line 5, col. 39.

    I am in turn advised of the following:

    There are 4 errors which must be fixed before you can save.

    Update anyway, even though it might break your site?

    I would be grateful for help in correcting the above line of code. It is not possible to contact the creator of DW Question & Answer directly via their website, as they demand payment of an annual fee in the first instance.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    You cannot put php code into the Additional CSS area.

    You will not be able to integrate that plugin until you or somebody else can create / edit files on your site.

    @margmacd

    Participant

    Many thanks for this helpful reply. Presumably, creating a plugin for the code (http://webcraft.tools/how-to-create-a-simple-wordpress-plugin/) would work just as well, assuming that there are no errors.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS code for integration of BuddyPress with DW Question & Answer’ is closed to new replies.
Skip to toolbar