Tagged: x
-
AuthorPosts
-
August 25, 2016 at 10:01 pm #1147657
kjhostingParticipantHi there,
I’d like to edit the ups_sidebar_do_meta_box function to add a couple more post types to the posts/pages that are available to choose for a sidebar (/framework/functions/global/admin/sidebars.php:239).
However, due to the nature of your original X code, you don’t check to see if the function is already declared. Is it possible to have your X code modified to add a function_exists check for sidebars.php? Or can you suggest another way, since you also don’t seem to have any hooks available for sidebar creation/modification?
Thank you.
Jarrod.August 25, 2016 at 11:12 pm #1147739
RupokMemberHi Jarrod,
You can add your own logic to Child Theme as you have full control over that. We already have Unlimited Sidebars features that should do the job.
Thanks!
September 1, 2016 at 8:58 pm #1157850
kjhostingParticipantHi Rupok,
Thanks for the reply (I forgot to “subscribe” to this thread, so didn’t see it).
It is your unlimited sidebars that I would like to modify. By default, your unlimited sidebars function only brings in particular types of posts (pages, posts). However, I’d like to bring in posts that have a different post type. Specifically, sfwd-lessons and sfwd-courses which are created by Learn Dash. All that needs to be changed, is the WP_Query call to include the two post types above.
How do I add my own logic to the child theme, to override your unlimited sidebars logic? To be honest, I assumed that X functions would all be overrideable, and have each function check to see if it has already been defined (much like WordPress core itself).
Thanks,
Jarrod.September 1, 2016 at 11:13 pm #1157964
RupokMemberHi Jarrod,
The custom sidebars in X don’t support detecting custom post types. If you’re using an actual WordPress page, you could try assigning it to that page. It’s possible that this won’t work if the plugin changes the WordPress query used on that page.
This could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer, or a service like Mircolancer or Tweaky to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!
September 1, 2016 at 11:16 pm #1157968
kjhostingParticipantI love X, and think it’s a fantastic theme. However, full control of functions (overriding as mentioned in previous post) is necessary.
Please submit that as a feature request.
September 1, 2016 at 11:48 pm #1157999
DarshanaModeratorHi there,
We certainly appreciate the feedback! Yes, this is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1147657 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
