Set Theme Presets via add_theme_support() #63

Open
seb86 opened this Issue Sep 10, 2016 · 5 comments

Projects

None yet

1 participant

@seb86
Owner
seb86 commented Sep 10, 2016 edited

Original issue deleted.

@seb86 seb86 added the help wanted label Sep 10, 2016
@seb86 seb86 changed the title from Community Presets to Theme Presets Dec 11, 2016
@seb86
Owner
seb86 commented Dec 11, 2016

Created a new file that provides a table of themes that I will check and update from time to time.

@seb86
Owner
seb86 commented Dec 20, 2016 edited

As an additional support for theme developers, what I would like to do is allow them to support the plugin by presetting the theme selectors using add_theme_support.

With the theme selectors already put in place there would be no need for the user to setup the plugin for the theme.

This way the theme is already supported and no further configurations required.

Will need to change how the default settings are set should the theme provide support for the plugin with the theme selectors already being preset using get_theme_support

@seb86
Owner
seb86 commented Dec 20, 2016

This would also mean that theme developers also need to make sure that the template file that is called for the loop matches with their file structure.

@seb86
Owner
seb86 commented Dec 20, 2016

Having considered the weight of the plugin should it support thousands of themes rather than the themes supporting the plugin, it would be allot to maintain so I'm hoping to get theme developers on board with this. Of course there will be themes out there that may not want to, so thats where the setup support comes in.

@seb86
Owner
seb86 commented Jan 21, 2017

Here is an example of what a theme author would need to add to declare support out of the box should the default theme selectors not match.

add_theme_support('auto-load-next-post', array(
	'content_container' => 'main.site-main',
	'title_selector' => 'h1.entry-title',
	'navigation_container' => 'nav.post-navigation',
	'comments_container' => 'div#comments',
));
@seb86 seb86 changed the title from Theme Presets to Set Theme Presets via add_theme_support() Jan 21, 2017
@seb86 seb86 added the improvement label Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment