Title: Query String Control Setup.
Last modified: August 12, 2022

---

# Query String Control Setup.

 *  Resolved [Colin Kells](https://wordpress.org/support/users/kellscolin2020/)
 * (@kellscolin2020)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/query-string-control-setup/)
 * I can turn a Column Block off, but not back on again.
 * I have set Main Column Block “Required Queries (Any)” to;
    docs=query-string-
   test#Coffeemugs
 * This has made the required Column Invisible.
 * URL to this page is set as follows;
    [https://mydomain.com/drinkware/#Coffeemugs/?docs=query-string-test#Coffeemugs](https://mydomain.com/drinkware/#Coffeemugs/?docs=query-string-test#Coffeemugs)
 * Not sure if I’ve missed something or syntax error.
 * Cheers
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquery-string-control-setup%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/query-string-control-setup/#post-15910919)
 * Hi Colin,
 * This looks to be a syntax error. `#` should not be included in a query parameter
   due to how [URLs are encoded](https://en.wikipedia.org/wiki/Query_string#URL_encoding)
   and because `#` defines a subsection of the page and is therefore ignored as 
   part of the parameter.
 * That said if you change the “Required Queries (Any)” value to `docs=query-string-
   test` you should be in good shape. Then go to `https://mydomain.com/drinkware/?
   docs=query-string-test` or `https://mydomain.com/drinkware/?docs=query-string-
   test#Coffeemugs` (again the `#Coffeemugs` is ignored as part of the parameter)
   and you should see your Column block.
 * Let me know if you run into any trouble.
 * Best,
    Nick
 *  Thread Starter [Colin Kells](https://wordpress.org/support/users/kellscolin2020/)
 * (@kellscolin2020)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/query-string-control-setup/#post-15912794)
 * HI Nick
 * Thanks for your reply.
 * Works fine if Domain Name is removed.
    i.e /drinkware/?docs=query-string-test
 * I assume I can change docs=query-string-test to anyname, with different names
   for
    each block that I want to hide/view?
 * Cheers Colin
 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/query-string-control-setup/#post-15913693)
 * Hi Colin, yes, you can change the query string to anything you want and configure
   the blocks accordingly.
 * For example, if you specified a query string `products=shirts` and configure 
   a bunch of blocks with this visibility condition, then whenever anyone navigates
   to `exampledomain.com/?products=shirts`, they will see the blocks. You could 
   also have other blocks setup with something like `products=pants`, which would
   only show up on the URL `exampledomain.com/?products=pants`.
 * Best,
    Nick

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Query String Control Setup.’ is closed to new replies.

 * ![](https://ps.w.org/block-visibility/assets/icon-256x256.png?rev=3122657)
 * [Block Visibility — Conditional Visibility Control for the Block Editor](https://wordpress.org/plugins/block-visibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-visibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-visibility/)
 * [Active Topics](https://wordpress.org/support/plugin/block-visibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-visibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-visibility/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/query-string-control-setup/#post-15913693)
 * Status: resolved