Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Categories, custom categories (Series, channel, playlist) show image in search
- This topic has 35 replies, 2 voices, and was last updated 7 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
August 18, 2017 at 7:34 am #14368
Ernest Marcinko
KeymasterHi,
It’s because of this theme CSS rule, it makes it invisible with 0 opacity:
[html].cactus-header-search-form form {visibility: hidden; opacity: 0; position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color:rgba(38,38,38,1.0);transition: all 0.2s ease-in-out;-webkit-transition:all 0.2s ease-in-out;}[/html]
Try adding this rule:
[html].probox .proinput form {
opacity: 1 !important;
display: block;
visibility: visible;
background: transparent !important;
}[/html]August 18, 2017 at 9:01 am #14373Ernest Marcinko
KeymasterAlso, on mobile devices the widget container is too small, just a few pixels, and it does not fit correctly.
I would suggest the following rule:[html]@media screen and (max-width: 436px) {
.cactus-header-search-form {
display: block !important;
}
}[/html]It will ‘drop’ the search below the menu on low-width devices: http://i.imgur.com/uBnHnBn.png
August 18, 2017 at 12:03 pm #14377golasze
ParticipantYou cannot access this content.
August 18, 2017 at 9:09 pm #14384golasze
ParticipantNo working when sticky menu option is enabled
August 21, 2017 at 10:48 am #14391Ernest Marcinko
KeymasterHi,
It is because the sticky menu makes a DOM copy of the search HTML and places it into itself. This results in invalid HTML and loss of attached event handlers, as copying HTML elements does not copy the event handlers as well.
Unfortunately this is not possible to resolve with any custom code, as making duplicate elements of same IDs and names is not valid, and there is no way around it. It is not related to ajax search pro, unfortunately, if you would place any script powered element into the sticky menu, it would very likely fail as well.
August 21, 2017 at 1:58 pm #14398golasze
ParticipantWhy in default theme sticky search bar is working correctly, but in custom build up plugin not?
August 21, 2017 at 4:10 pm #14401Ernest Marcinko
KeymasterProbably because it was developed with the theme, and the script was made to handle that.
January 11, 2018 at 3:50 am #16250golasze
ParticipantYou cannot access this content.
January 12, 2018 at 12:39 pm #16271Ernest Marcinko
KeymasterHi,
1. Could you please try this variation:
This will only affect the live results.
2. Make sure to update the plugin to the latest release (4.11.10), as this was a known issue with the previous one.
January 12, 2018 at 7:24 pm #16277golasze
ParticipantYou cannot access this content.
January 13, 2018 at 11:14 am #16283Ernest Marcinko
KeymasterHi,
There seems to be invalid HTML within the results, that causes the problem. It happens when there is an unclosed tag within the content, but it’s hard to tell. I can see some ‘a’ and ‘strong’ tags unclosed there in the results.
If you use the advanced title or content fields, make sure to check if there is no unclosed or invalid tag there (scroll down fo the options): https://i.imgur.com/49880D3.png
On the same panel, if there is any exception for the HTML tags to strip, I recommend disabling those as well: https://i.imgur.com/fxgeMj1.png
Don’t forget to clear the search cache as well, after changing these options.
January 14, 2018 at 6:02 am #16295golasze
Participantworking, thanks
January 14, 2018 at 10:29 pm #16300golasze
ParticipantYou cannot access this content.
January 15, 2018 at 3:40 pm #16313Ernest Marcinko
KeymasterHi!
I believe that is due to a javascript issue, I think it is caused by a previous code suggestion. On those pages the login form is not visible at all times, and the custom code malfunctions.
Please try replacing it with this one, and make sure to clear the cache as well. This will check the form existence first:
January 16, 2018 at 7:40 pm #16332golasze
ParticipantYou cannot access this content.
-
AuthorPosts
- The topic ‘Categories, custom categories (Series, channel, playlist) show image in search’ is closed to new replies.