-
chathura
MemberYeh it may be a problem with something else.
Any way is it possible to embed that Manual activation hook (Filter) to a template file like header.php so that the sidebar loads automatically as the page loads? Kinda like a shortcode.Thanks and have a great day!
-
chathura
MemberThis just pop into my mind, Can’t we place a trigger to the sidebar inside a template file like header.php?
I’ve already tried to place a slider (with do shortcode function) in the header.php and it is appearing on site wide without any problem.
Thanks!
-
chathura
MemberThanks for the reply Milan.
I got an answer from wpmu dev and they told me this change will not cause coursepress plugin to malfunction.
I tried this on my local host installation. I change all the elements from ‘public’ => false, to ‘public’ => true, but still the sidebar isn’t appearing on course pages.
Any idea?
I’ve attached some screenshots and the child theme that I made all the changes for your convenience.
Thanks and Have a great day!
-
chathura
MemberHi Milan, I got a response from WPMU DEV about making this post type as public. Here it is.
“CoursePress is made up of several post types, while it looks like just one post type, all together it is actually more around 5+ combined. It’s a complex setup. So, I’m not sure if simply changing it to public will work in this case.
I did find where you can change that though. In the /wp-content/plugins/coursepress/coursepress.php folder there are all the register post type functions.
Starting around line 6769. With this line:
function register_custom_posts()
Then ending around line 7245 with this line:
do_action( ‘coursepress_after_custom_post_types’ );
}
You can copy that block into your themes functions.php and change all the:
‘public’ => false,
to
‘public’ => true,
I tried it on my install and it seemed to be fine, but I wasn’t able to test it with that plugin since it’s a paid one.
With all that said, I’m also going to message our developer on this just to see what sort of implications doing this would have :)”
Would you please try this and tell me whether this solution works or not?
I can’t do these sort of tests in my live site.
Thanks and Have a great day!
-
chathura
MemberThanks for the reply Milan.
Is there any workaround for this problem? -
chathura
MemberSent
-
chathura
MemberThe file is too large to attach here.
Can you please send me your email address?
Thanks.
-
chathura
MemberThanks for the reply Mialn.
Coursepress comes with its own theme called courepress theme. So is this a problem with the theme or the plugin?
If its a issue with the theme I would proceed to resolve this, otherwise no. Because all edits made to the plugin would be removed whenever I update it.
Let me know if you need any further details from me regarding this issue.
