load anspress assets only bodypress qa page
how to load anspress assets only bodypress qa page? and “Check this to load AnsPress JS and CSS on the AnsPress page only. Be careful, this might break layout.” turn on this option.
Question is closed for new answers.
coderog Changed status to publish
wp-content/plugins/anspress-question-answer/addons/buddypress/buddypress.php
font ap_qa_page() function
public function ap_qa_page() {            echo      "<link rel='stylesheet' id='anspress-fonts-css' href='https://filecube.net/wp-content/plugins/anspress-question-answer/templates/css/fonts.css?ver=4.1.21' type='text/css' media='all'>      <link rel='stylesheet' id='anspress-main-css' href='https://filecube.net/wp-content/plugins/anspress-question-answer/templates/css/main.css?ver=4.1.21' type='text/css' media='all'>      <style id='anspress-main-inline-css' type='text/css'>    #anspress .ap-q-cells{     margin-left: 60px;   }   #anspress .ap-a-cells{     margin-left: 60px;   }         </style>";         add_action( 'bp_template_content', [ $this, 'ap_qa_page_content' ] );   bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );  }
coderog Changed status to publish