• Resolved jw360

    (@jw360)


    Hi Joachim,

    Thank you for Content Aware Sidebars and Page Sidebar for Twenty-Seventeen; very useful.

    At first I had confused the ability to have a sidebar on a given page with the creation of a sidebar widget that could then appear! Now I understand that the definition of new sidebar widgets is not what your plugin offers, and I have that sorted by using a new class wpcas_widget that extends WP_Widget in functions.php of the theme, which itself is a child of Twenty-Seventeen. I could publish here my simple example which allows the sidebar to list the post titles as links in place of the ubiquitous date-based blog archive list, if you think that would help others.

    So far so good.

    But my current problem is knowing how I can override the page template within the plugin, namely:

    plugins/page-sidebar-for-twentyseventeen/templates/page.php

    Normally I would expect that by creating a folder to match this within my child theme and copying page.php there, I would be able to override this page so as to make small tweaks to the default page, at:

    themes/twentyseventeenchild/page-sidebar-for-twentyseventeen/templates/page.php
    but this seems not to work.

    Is the only way to create a new default template at the child theme level with (for example):

    themes/twentyseventeenchild/page-newslug.php

    …and then defining a new template within it. This would mean always having to select a template design for each page, even when it’s (like the majority) just a default page? This would not be very convenient! Do you have any suggestions?

    I hope my explanation of the problem is adequate!
    Regards,
    John White

    • This topic was modified 4 years, 7 months ago by jw360.
    • This topic was modified 4 years, 7 months ago by jw360.
  • The topic ‘Use with a child theme’ is closed to new replies.