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 17, 2017 at 2:10 pm #14331
golasze
ParticipantCategories, custom categories
In search results, the categories not showing any image in results only the name and link. I have tried plugins such as: Categories Images, Category Featured Images – Extended. How to get image show for category?
“It very much depends on how the images are stored. WooCommerce category images are supported, but for others specific custom code has to be constructed, depending on how the images are stored – sice there is no built in solution in WordPress that I could implement to the plugin.
I suggest opening a support ticket, and I will take a look directly. Thanks!”
-
This topic was modified 8 years, 9 months ago by
golasze.
August 17, 2017 at 2:38 pm #14333golasze
ParticipantYou cannot access this content.
August 17, 2017 at 2:49 pm #14336Ernest Marcinko
KeymasterHi,
I see you use the Categories Images plugin. For that to work, a small custom snippet is needed to be placed into the functions.php file in your active theme directory:
1. Make sure you have a back-up of everything
2. Place the following code to the functions.php file in your acrive theme directory (copy from line 3 only!):
3. Save the file, and you are done.After this, category images should start showing up. If you need help with the implementation, feel free to leave FTP details and I will do it for you.
August 17, 2017 at 2:58 pm #14338golasze
ParticipantImage shows working now, thanks.
What about make search bar expandable when click on it.
Ex. default is 300px, but when I click on it is expand for 80% or 100% of page width?August 17, 2017 at 3:00 pm #14339Ernest Marcinko
KeymasterHi,
Try out the compact search box options, it may help achieving something similar: https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/layout_settings/compat_search_box_layout.html
August 17, 2017 at 3:24 pm #14340Ernest Marcinko
KeymasterI just remembered, someone already had a similar request, that may interest you.
This is a solution, where the search width changes when the input is focused to 800px (or max screen width), and changes back when the focus is lost:
August 17, 2017 at 3:40 pm #14341golasze
ParticipantYou cannot access this content.
August 17, 2017 at 3:53 pm #14346Ernest Marcinko
KeymasterIt’s probably caclulated based on the user login position and the form left position (?):
August 17, 2017 at 4:04 pm #14348golasze
ParticipantPerfect, thank you for quick respond and a solution 🙂
August 17, 2017 at 4:04 pm #14349Ernest Marcinko
KeymasterYou cannot access this content.
August 17, 2017 at 4:14 pm #14352golasze
ParticipantSure
August 17, 2017 at 4:39 pm #14355golasze
ParticipantOne more think, If i change or modify Theme
– overall box layout
– input field layoutThe preview works well but the default theme is showing on the front-end of the page (modification are not showing). Clean cache doesn’t help, change browser as well
I tried setup new theme and paste but the expandable option not working and I cant even write down and textAugust 17, 2017 at 4:46 pm #14356golasze
ParticipantWorks now I had to change in widget
Badge Background Color: #FFFFFF
choose background color for the Badge: #000000August 17, 2017 at 4:47 pm #14357Ernest Marcinko
KeymasterI have made a tiny change on the back-end, for faster CSS loading, and better cache prevention: http://i.imgur.com/gnXVgVy.png
This should make sure that the changes are visible, if you clear the cache and reload the page with CTRL + SHIFT + RAugust 18, 2017 at 12:11 am #14366golasze
ParticipantYou cannot access this content.
-
This topic was modified 8 years, 9 months ago by
-
AuthorPosts
- The topic ‘Categories, custom categories (Series, channel, playlist) show image in search’ is closed to new replies.