• Resolved Kurisutian

    (@kurisutian)


    Hi,
    I’m using this plugin to disable my widgets on all content except the frontpage. I generated my theme with TemplateToaster but unfortunately when setting up the widgets to show only on the frontpage, they won’t be shown at all. Not on the frontpage and not anywhere else. So I had to disable to plugin again and fall back to the internal WP widget restriction which does not include custom post types (which is why I used the plugin in the first place).
    Is there any known way I can accomplish this?

    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Cameron Law

    (@seo-dave)

    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://www.ads-software.com/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

    Thread Starter Kurisutian

    (@kurisutian)

    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?

    Plugin Author David Cameron Law

    (@seo-dave)

    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: https://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.www.ads-software.com/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 https://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

    Thread Starter Kurisutian

    (@kurisutian)

    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

    Thread Starter Kurisutian

    (@kurisutian)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not displaying widgets on frontpage’ is closed to new replies.