• Resolved jashaw

    (@jashaw)


    I am using a purchased theme. The theme designer thought it was a grand idea to use the → character in the widget name. The WP_Widget function uses 'Theme → FAQ' as the name of the widget. If I change the theme name to ‘Theme-FAQ’ it works. Is there a way to make this work without having to rename all of the theme widgets?

    https://www.ads-software.com/plugins/amr-shortcode-any-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari

    (@anmari)

    What happens if you just do
    [do_widget_area]

    does it work? (should do all widgets in shortcode)

    and then what happens if you try use the id instead of the name?

    read further to see how to get the id
    https://www.ads-software.com/plugins/amr-shortcode-any-widget/installation/
    or here
    https://www.ads-software.com/plugins/amr-shortcode-any-widget/

    Thread Starter jashaw

    (@jashaw)

    I tried your suggestion. I does not display any errors as it was doing with the name attribute using this method but it does not display the data either.

    Plugin Author anmari

    (@anmari)

    The shortcode plugin doesn’t ‘need’ the name, so somewhat surprising that it wouldn’t cope. EG: the widget area shortcode just does all the widgets in the sidebar.

    Does it show any other ‘normal’ widget ised in the shortcodes sidebar

    Does your chosen widget show anything when in a normal sidebar ?

    Did you check whether the htmi is there, but hidden by css (amazingly this has happened before – caused by the theme css)

    mabe it would just be easier for now to take out the unusual characters as wp is obviously having to convert them and maybe that is causing the mismatch.

    Thread Starter jashaw

    (@jashaw)

    Good call! The original suggestion had worked. We were making several changes at the same time and apparently introduced some other issues. Your post made me think a little more about why I wasn’t getting any errors after the modification. I wiped the theme and browser cache and after that using the id alone is working fine.

    Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with odd character in widget name’ is closed to new replies.