Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › How to make some adjustments to the serach
- This topic has 17 replies, 2 voices, and was last updated 7 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
October 23, 2018 at 9:11 am #19565
Nicsa
ParticipantHey,
Firstly thanks for a great plugin.
I have two questions.
1)can i add a serach button next to the settings boxes
2)how can i change the live results to be 100% of the content as right now it just stays the size of the search input
as this is the css i changed to make go to 924px but wont this effect the way it looks on mobile?
.horizontal, .wpdreams_asp_sc-1 .asp_an_fadeInDrop{width:924px !important;}this is the url:https://holidayxentral.com/test-home/
October 23, 2018 at 10:52 am #19573Ernest Marcinko
KeymasterHi,
Thank you for your kind words!
1. This will help you with that
2. I suggest trying the results shortcode. It will make a ‘block’ wherever you place it, each search instance has one results shortcode generated. This container will always follow the width of the parent container, in this case, that should be the page width.October 23, 2018 at 11:52 am #19574Nicsa
ParticipantHey
one last thing the arrows in the drop downs how can i change the background color i can find the class and the editor dont have a option to customize the color background of the arround box in the dropdown feildOctober 23, 2018 at 12:41 pm #19575Ernest Marcinko
KeymasterHi!
Can you please be a bit more specific which part? You can send a screenshot if you want, I will try to construct a custom CSS if possible.
October 23, 2018 at 12:59 pm #19576Nicsa
ParticipantYou see in the serach settings the drop down arrows that point down that are in grey i need to change that background color
see the attachmentOctober 23, 2018 at 1:22 pm #19582Ernest Marcinko
KeymasterHi,
I get it now, thank you. Unfortunately that is handled by the browser, and in most cases it cannot be changed. Chrome allows some changes, in Firefox you can only hide it:
[html].asp_select_label select {
-moz-appearance: none;
}[/html]Hopefully browsers will support changes to form elements in the future, that would be really nice.
October 23, 2018 at 1:26 pm #19583Nicsa
ParticipantHey wont this help
[code]input:not([type="button"]):not([type="submit"]):not([type="reset"])[/code]October 23, 2018 at 1:30 pm #19584Ernest Marcinko
KeymasterHi,
No, because the arrow is not an input type, but part of the ‘select’ form element, which cannot be targeted via CSS.
October 23, 2018 at 1:33 pm #19585Nicsa
ParticipantOn my pervious serach form it has been targeted by css go to holidayxentral.com and have alook at my serach there you will see the arrow is a select feild and it has a back ground attached to them.
are you 100% sure we cant change itOctober 23, 2018 at 1:38 pm #19586Nicsa
ParticipantYou cannot access this content.
October 23, 2018 at 1:41 pm #19587Ernest Marcinko
KeymasterThat could actually work. It will still hide the select arrow, but then add an ‘icon’ after the select box as an arrow replacement. It is a very clever solution. Don’t forget to include the icon set, if there was any used, that contains the [code]’\f078′[/code] character.
October 23, 2018 at 1:44 pm #19588Nicsa
Participanti will pull font awesome in on the page as a seprate.
you can use the code in your knowledge base if you want to:)October 23, 2018 at 2:16 pm #19589Nicsa
ParticipantHEy,
I have found a better solution for this when done with the css adjustments i will share it with youOctober 23, 2018 at 2:22 pm #19590Ernest Marcinko
KeymasterThank you, I will add it to the knowledge base then 🙂
October 23, 2018 at 2:45 pm #19591Nicsa
Participant[code]select::-ms-expand {
display: none;
}.asp_select_label:after {
content: ‘>’;
font: 28px "Consolas", monospace;
color: #999;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
right: 14px;
/*Adjust for position however you want*/top: 5px;
padding: 0 0 2px;
border-bottom: none;
/*left line */position: absolute;
pointer-events: none;
}.asp_select_label select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* Add some styling */display: block;
width: 100%;
max-width: 320px;
height: 50px;
float: right;
margin: 5px 0px;
padding: 0px 24px;
font-size: 16px;
line-height: 1.75;
color: #333;
background-color: #ffffff;
background-image: none;
border: 1px solid #cccccc;
-ms-word-break: normal;
word-break: normal;
}[/code]This will change the arround on the select drop downs you can adjust the colors and the font and site.
it is easier to use a symbol over font awesome -
AuthorPosts
- You must be logged in to reply to this topic.