Suggested Keywords

This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 8 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5889
    Glyn Hopkins
    Glyn Hopkins
    Participant

    FRONTENDSETTINGS
    —–> SUGGESTED KEYWORDS

    I enter

    Apple, Pay Monthly, All you can eat, 2GB, 8GB, 15GB, 300 mins, 600 mins

    The output on front end shows:
    Try these: Apple, Pay Monthly, All you can eat, 2GB, 8GB, 15GB, 300 mins, 600 mins

    How can I remove the “comma’s” so it just says:

    Try these: Apple Pay Monthly All you can eat 2GB 8GB, 15GB 300 mins 600 mins

    #5890
    Glyn Hopkins
    Glyn Hopkins
    Participant

    Screen shot attached.

    Attachments:
    You must be logged in to view attached files.
    #5892
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    It’s kind of hard-coded, but a simple 1 line modification to the code will help.

    Open up the /wp-content/plugins/ajax-search-pro/includes/views/asp.shortcode.php via FTP and go to line 51, where you should see this:

    $s_phrases = str_replace(array('  ,', ' , ', ', ', ' ,'), '</a>, <a href="#">', $style['frontend_suggestions_keywords']);

    change that line to:

    $s_phrases = str_replace(array('  ,', ' , ', ', ', ' ,'), '</a> <a href="#">', $style['frontend_suggestions_keywords']);

    That should do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5895
    Glyn Hopkins
    Glyn Hopkins
    Participant

    That’s amazing.

    Can you tell me also how to change the “suggested search keywords” colour

    I can hack any example you give me to working.

    Thanks

    Glyn.

    #5896
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Sure thing. Actually a simple CSS is enough for that 🙂

    Use this custom CSS rule, you can put it into the search instance settings Theme Options -> Custom CSS panel: https://i.imgur.com/9fva4I3.png

    
    p.asp-try a {
        color: #FFB556 !important;
    }
    

    Don’t forget to change the “#FFB556” color to your needs 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5897
    Glyn Hopkins
    Glyn Hopkins
    Participant

    Thanks Ernest. This is such a great piece of tech & it all worked. Thanks this tickets is now closed.

    #5898
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome and thank you for the kind words!

    Feel free to rate the plugin if you want to on your codecanyon downloads dashboard: http://codecanyon.net/downloads

    I’m closing this ticket, if you have any other issues, feel free to open a new one.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Suggested Keywords’ is closed to new replies.