Side bar not displayed site wide

Author
Topic
#2323

Hi,

The side bar is not displayed in my site http://bit.ly/1CGsweh

I have setup to display the sidebar site wide, but it’s not displayed on certain pages. These pages are pages created by the coursepress pro plugin.

How to resolve this?
Thanks!

Viewing 15 replies - 1 through 15 (of 17 total)
Author
Replies
  • #2324

    I have checked it out, but I can’t see anything there, except that my plugin is not loading at all. That CoursePress Pro is a theme from what I can see, and it is possible that this theme overrides some normal WordPress processes, preventing some plugins to load properly or to detect pages. And, I have read a bit on the Internet, many users are complaining that CoursePress is overriding some key elements of WordPress for some reason. That could be the reason for my plugin fail to load on some pages.

    I would need to test with it directly to be able to say what exactly is the issue.

    Milan

  • #2325

    Thanks 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.

  • #2326

    I have no idea what is the problem, I never used CoursePress, so I don’t know how the theme or it’s plugin works. I have found that many users had issues with it because of the way it was made. If you can send me both theme and plugin, I can test it locally.

  • #2327

    The file is too large to attach here.

    Can you please send me your email address?

    Thanks.

  • #2328

    Send it to: [email]plugins@millan.rs[/email].

  • #2329

    Sent

  • #2330

    OK, I will check this in the next 2-3 days, as soon as I have some free time.

  • #2333

    I have tested plugin with CoursePress plugin and theme, and it works fine, sidebar loads properly if set as sitewide. The only issue is that Course post type used by this plugin is not set as public, so my plugin can’t show it in the post types list for custom display rules.

  • #2334

    Thanks for the reply Milan.
    Is there any workaround for this problem?

  • #2335

    Site wide works. But as for the post type issue, solution is that CoursePress registers post type as public (and it is public, I am not sure why they set it as private in the first place).

  • #2357

    Hi 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!

  • #2358

    Hi,

    If set to true, my plugin will see the post type, but it is possible that CoursePress will be broken if depending on the post type set as private. There is not much I can do regarding this.

    Milan

  • #2360

    Thanks 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!

  • #2364

    This 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!

  • #2365

    I think you didn’t understand me before: Sidebar works with CoursePress if you set sidebar as sitewide. I tested with default CoursePress and your child LMS theme, and with both, sidebar that is set as site wide works.

    The only thing that is not working is setting rule for course post type (because it is set as private).

    If you have set sidebar as sitewide, and it is still not working, something else must be causing the problem.

    Milan

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Side bar not displayed site wide’ is closed to new replies.