There’s multiple ways of displaying a widget only on the home page, easiest ways are these.
This should work for all sites assuming it’s a Multi-Widget widget- see FAQ https://wordpress.org/plugins/display-widgets-seo-plus/faq/: “Some widgets lack the Display Widgets SEO Plus Options?”, nothing can be done if your theme uses old widgets.
Under “Appearance > Widgets” select a widget you want to change where it’s displayed. Set these options:
Hide OR Show For Everyone
Show On Ticked
Under “Content +/-” Tick:
Static Front Page
Home Page Archives – Page 1 Only
Home Page Archives – Pages 2,3,4…
Save the Widget and it should load on the Home page.
Alternative method.
If you’ve set a specific Static Page for the Front Page this can also work:
Hide OR Show For Everyone
Show On Ticked
Under “Static Pages +/-” Tick:
The Static Page you have set as the Front Page.
Save the Widget and it should load on the Front Page only.
David
Thanks for the reply. Unfortunately this did not work for me. I noticed that whenever I set something (multiple combinations, also the ones you mentioned above) the settings are applied in your plugin but the regular option in WP also changes. So when activating a widget eg on the frontpage (only) the regular widget setting activites the widget to be hidden on the frontpage. So there’s definitely some relation. Enabling a widget to be shown in your plugin automatically disables it in the WP widget hiding menu… which results in the widget not being shown.
Only disabling your plugin enables me to uncheck the widget to be hidden within the default WP option. Is this wanted to overwrite the WP default or is this perhaps a bug?
I think I’ve tracked the issue down.
WordPress by default doesn’t have any Hide Widget options, but it would appear TemplateToaster themes do: http://kb.templatetoaster.com/widget_options.html
I’ve not used a TemplateToaster theme before so don’t know how their hide widget features work. From the sound of things the theme features and the plugin features are clashing. If you can completely disable the themes features, try that, it can confirm the clash.
If setting a Display Widgets SEO Plus plugin setting also changes the themes settings (so theme option tick boxes change that shouldn’t) it could be they have used the Display Widgets Plugin as the starting point for their theme hide widgets feature (this plugin is a fork of the Display Widgets plugin from https://en-gb.wordpress.org/plugins/display-widgets/).
If TemplateToaster have used the same database options names it could cause a problem: I do this with the Stallion Responsive Theme http://stallion-theme.co.uk/stallion-responsive-theme/ Display Widgets feature (I used the Display Widgets plugin as the code base).
I don’t have access to TemplateToaster theme code (premium product), so can’t investigate further. You could try their support site, the Display Widgets plugin is popular, so maybe they’ve had this issue before.
David
Hi David,
thanks for the quick response. I just opened a ticked on their support site. I’ll see if there is a option to disable the TT feature so I can use your plugin. Thanks for the help and hopefully I can make it work with them since I prefer the more detailed approach of your plugin over their basic attempt to offer this functionality.
Thanks a lot!
Christian
OK, here is what I received from the TemplateToaster Support Team. In case somebody else has to make the plugin work.
Hi, To make ‘Display Widget’ work, you have to make custom changes in the function.php file of your theme. Go to installed WordPress folder -> wp-content -> themes -> required theme -> functions.php -> go to line number 2359 i.e. function templatetoaster_in_widget_form(), comment the whole function. Also, comment the line number 2263 add_action() and 2265 add_filter() in the same file. Sincerely, TemplateToaster Support