Search Results for 'code'
-
Search Results
-
Hello. I‘m using free astra theme, elemntor pro, WooCommerce, bbPress and LearnDash in my website.
I’m trying to make a custom “my-account” which comes with woocommerce. and I did using the short code and elementor. but since I’m using bbpress too, I wanted to view the bbpress user profile that’s located by defualt in “example.com/forums/user/******”
what I did: i created a custom endpoint “/my-account/forums/” and since I wanted the dynamic content. i thought i can use the templates of bbpress. so I added code #1 in my theme functions.php and copied the code of user-profile.php from the bbpress templates into my forums.php that i created in astea/WooCommerce/myaccount/
code #1
`function my_custom_endpoint_content() {
include ‘woocommerce/myaccount/forums.php’;
}
add_action( ‘woocommerce_account_forums_endpoint’, ‘my_custom_endpoint_content’ );what happened: it showed the content, but it views the data of a normal vistor – non-logged in user- instead of pulling the current user.
so any ideas on how to achieve such a thing ? maybe there is a another method that’s not even related to what I’m trying to do ?
I am experiencing 404 errors on forum and topic views. It appears to be at random and not all the time.
Got error 'PHP message: PHP Notice: Undefined offset: 0 in /wp-content/plugins/bbpress/includes/topics/capabilities.php on line 80\nPHP message: PHP Notice: Undefined offset: 0 in /wp-content/plugins/bbpress/includes/replies/capabilities.php on line 62I have re-saved permalinks, changed->saved then changed-back->saved and still have the 404 errors occasionally.
I googled this error and found:
https://wordpress.org/support/topic/capabilities-undefined-offset-error-with-bbpress/I tried updating the capabilities.php file as discussed but still having issues.
Does anyone have any experience with this problem and have a fix?
Hello,
I am using the bbPress forums currently, and whenever we create a topic it is this grayed out color… We did find a custom CSS code to use, and it DOES work for Closed topics, but all others it still stays grayed out. What can we do to fix this?
Also, whenever someone is typing a reply it still displays in this awful gray color. How would I change the default color of the text being used in our forum?
(For reference, here is the code we used for black Closed topics:)
#bbpress-forums .status-closed,
#bbpress-forums .status-closed a {
color: #000 !important;
}(And yes, we did try just switching closed with open in the coding lol.)
Thank you.