Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Hi – Settings Shortcode Bug
- This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
November 9, 2018 at 3:44 pm #19876
pstrachan91
ParticipantHi there,
First of all, great plugin, it’s awesome. There is just one issue with the settings shortcode that I’ve noticed. I’m trying to get the settings to display at the right hand side of the search bar.
This is what I done within Frontend Search Settings – General…
Setting – Show search settings switch on the frontend? – ON
Setting – Set the search settings to visible by default? – ON
Setting – Search settings position – BLOCK OR CUSTOMIt works as should with the simple shortcode, however, when I use the custom settings position shortcode to place the settings elsewhere, it breaks on the frontend and displays the settings 3 times (please see attached screenshot).
I have spent many hours trying to fix this without success, I can only assume it’s a bug.
Hope that makes sense,
Thanks very much,
PaulNovember 12, 2018 at 11:28 am #19889Ernest Marcinko
KeymasterHi!
Thank you for all the details.
When a block is displayed multiple times, it is usually related to a 3rd party script, but I am not sure in this case though.
I assume you want a two-block layout, where the settings block is on the left side, and the search bar on the right side, something like this: https://i.imgur.com/uxbv3mO.png
To achieve that, simply use this shortcode alone, nothing else at all:
[code][wd_asp elements='settings,search' ratio='50%,50%' id=1][/code]
(just change the id parameter, for the search ID you have)
This should do the trick, your settings seem to be all right to me. You can construct these types of shortcodes with the Shortcode Generator feature. Let me know how this works out!
November 20, 2018 at 8:03 pm #20012pstrachan91
ParticipantHi there,
Thank you for the response. I tried the shortcode you provided but it’s simply not working as expected. I’ve tried every possible combination but there is a different issue each time. As soon as I set ”Search settings position” to block and set them to ”visible by default” it breaks. It also does not display correctly on mobile.
I simply want to put the settings on the left hand side of the search bar but it’s proving to be impossible. It seems to be an issue with the shortcode, it does not work correctly when ”block” is set rather than hover.
Thanks very much,
PaulNovember 21, 2018 at 12:57 am #20013pstrachan91
ParticipantHi there,
I just wanted to let you know that I’ve resolved the issue. It seems to have been a theme based search bar within the main menu that was causing all the problems. All is now fine having since removed this.
Thanks for the help,
Paul
November 21, 2018 at 9:43 am #20021Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- The topic ‘Hi – Settings Shortcode Bug’ is closed to new replies.