• Resolved m1rado

    (@m1rado)


    I’m a rather green web “developer/designer” and I use squelch tabs on a lot of my pages where I need to have toggles/tabs inside of tabs. Few plugins support nesting like that, so it was great to find squelch (especially given the price)

    However, is there ANY WAY to change the post-hash-text?
    #squelch-taas-toggle-shortcode-content-5 looks so tacky on the end of a URL on a professional website. Can I do some sort of find-replace on the plugin directory to change that to anything else? maybe just #content-5 instead.

    I’m guessing this question is terribly revealing of how much I understand about wordpress/plugins in general, but I can’t manage it on my own!

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter m1rado

    (@m1rado)

    I’m finding the relevant code within the .php file of the plugin, but I’m worried about breaking something if I just do a replace function in case there’s other files within the plugin directory which would also need to be edited. Could you provide any guidance as to whether everything is contained within the squelch-tabs-and-accordions.php file?

    Plugin Author Matt Lowe

    (@squelch)

    Hi m1rado,

    The feature you’re requesting is coming to the plugin in the next version, and I’m hoping to have it released next week ??

    Thread Starter m1rado

    (@m1rado)

    My hero! That was my only complaint with squelch… It works beautifully, but blasting the name of the plugin and technobabble directly at them with the URL was making me uneasy. Happy to spread the word about your plugin, but I always hate giving people “free advertising” on commercial projects directly.

    Plugin Author Matt Lowe

    (@squelch)

    It was never intended as free advertising (and I very much doubt any lay person would understand or care what “squelch-taas” is), it was just a technical requirement due to the way the plugin has evolved over the years: The hash has to be the same as the ID of the widget in the page. The widget has always had IDs of (e.g.) #squelch-taas-tab-content-0 which is in turn related to the way that the widgets were based upon jQuery UI’s widgets.

    We would never have the plugin impose any advertising for ourselves. It goes against the spirit of open source software.

    Note that it will only be possible to change the contents of the url after the # to a point. Essentially the squelch-taas- part will be editable, but tab-content-0-0 won’t be. I might look to give users the option to turn off the automatic URL changing in the future too, it was intended to make it easy to link to a given tab on a page rather than reading the documentation to find out how to achieve the same result.

    I might also look to write a more advanced tab selection javascript routine in the future to allow for simpler URLs to be generated, e.g. https://www.example.com/#tab-0 … It wouldn’t be a particularly straightforward thing to add into the code but it’s not beyond the realms of possibility.

    I’d be happy to have the hash text removed entirely and not be able to link to a specific tab. Is this possible?

    I really like the plugin, but before I use it more, I need to be able to clean up the URLs. SEO and SEF URLs are important to me as is removing any distractions. Your help is greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘URLs post-hash’ is closed to new replies.