Tagged: custom widget area, page template
-
AuthorPosts
-
April 5, 2017 at 6:22 pm #772719
Hi,
I’m using the “Subscribe-to-comments-reloaded” plugin and created a management page for it with this tutorial:
https://github.com/stcr/subscribe-to-comments-reloaded/wiki/KB#Real-Page1. I have made a copy of loop-page.php in folder “includes”.
2. Re-named it to subscribe.php and added at the very top of this file<?php /* Template Name: Subscribe To Comments */ if (isset($wp_subscribe_reloaded)){ global $posts; $posts = $wp_subscribe_reloaded->subscribe_reloaded_manage(); } ?>
to have a template for a new empty page (= management page for the plugin), then assigned this template to a new page:
Then – and this is the issue – I created a “custom widget area” just for this page (made with this template created in that way), and added in this custom widget area some widgets like “latest news” from ENFOLD, and assigned to the new page this area as a sidebar:
Now the problem is, this copy of loop-page.php in folder “includes”, which I used like a template now, ignores the custom widget area.
Instead the default sidebar for pages and its widgets is shown.- I guess, it has something to do with the new page/new page template like I have described it above?
- Maybe I have used the wrong file for a duplicate, to create a PAGE TEMPLATE? Isn’t it “loop-page.php” in folder “includes” or better page.php in ENFOLD’s root?
- Or maybe the “custom widget area”, I have created just for this page, does not work with this duplicated loop-page.php, now is named now “subscribe.php” and acting like a template?
April 10, 2017 at 4:55 am #775236Hey Chris,
Thanks for the detailed report and sorry for the late reply. We haven’t tested if that plugin is compatible with the theme or not so I can’t guarantee that it will be compatible, but send us admin login in private and we’ll have a closer look at it.
Best regards,
RikardApril 10, 2017 at 1:19 pm #775443my site is not online – the issue is described above, it might be a general one not related to my site:
probably the functionality of “custom widget area” does not work,
– if I create a duplicate of “loop-page.php”,
– rename this to “subscribe.php”
– and add at its very beginning<?php /* Template Name: Subscribe To Comments */ if (isset($wp_subscribe_reloaded)){ global $posts; $posts = $wp_subscribe_reloaded->subscribe_reloaded_manage(); } ?>
just to use the duplicate as a new page template.
Then a new page does not use the “custom widget area”, that I have created for it.in detail: https://kriesi.at/support/topic/custom-widget-area-sidebar-is-ignored/#post-772719
April 11, 2017 at 6:55 am #775827Hi,
Ok, thanks for the feedback. Though we cannot provide support for third party plugins or code unfortunately, if the plugin or code you are using is not compatible with the theme, or not working for some other reason, then I would suggest that you find an alternative method of adding the functionality you are looking for.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.