• Resolved nitaai.co

    (@nitaaiyoga)


    My theme does not have a search on the top. Many other themes have the same problem. I don’t want to add search box inside a menu via a plugin. So I have put the search box widget at the very bottom of the blog and using the To Bottom icon of your plugin so that visitors can quickly go to the bottom and search. But there is no search icon option for the Select down icon. It is a very small thing for you but if you can add it, it will make it very clear for our blog visitors that they can go down and search by tapping it. Thanks in advance for your kind help and for such an excellent plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Danish Ali Malik

    (@danish-ali)

    Hi @nitaaiyoga,

    Hope you are doing good today ??

    Actually, I provided the icons that are related to the buttons but you can add a custom icon by using the filter provided by the plugin. Copy the following code and follow the steps below:

    /*
     * Adding custom Icon into the list
     */	
    function fl_custom_down_icons_cb($icons){
    
    	/*
    	 * Adding arrow-left icon to the list from fontawesome.
    	 * Choose any icon from fontawesome list. Here you can find all icons->https://fontawesome.com/v4.7.0/icons/
    	 * Use only name of the icon like "fa fa-arrow-left" would be only "arrow-left"
    	 */		
    	 $icons[] = 'search';
    
    	 /*
    	 * Returning back the icons list.
    	 */	
    	 return $icons;
    }
    /*
     * Filter to add custom icon into home icons list.
     */	
    add_filter('fl_down_icons', 'fl_custom_down_icons_cb');
    • Paste the copied code in your active theme functions.php file. You can use FTP or File manager to access this path and path will be wp-content/themes/{your-active-theme-name}/functions.php
    • After saving the file go to WP Dashboard > Floating Links > Design > and click on the “Take me there button” in Primary Bar box
    • It will take you to the live preview and click on the Change Icons tab, you will see the search icon in the down icons list like screenshot
    • Select the icon and hit Publish button at the top

    Let me know if it works for you or you need more assistance.

    Thanks!

    Thread Starter nitaai.co

    (@nitaaiyoga)

    Thanks @danish-ali, But when I add this code to my child-theme functions.php via ftp, it gives the following error:

    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Via the admin panel, it does not save it. So there is some bug in this code. Please help.

    Plugin Author Danish Ali Malik

    (@danish-ali)

    Hi @nitaaiyoga,

    I tested it again in my development environment and it’s working fine, Doesn’t seem to be an error in code.

    Please make sure you are using the latest version of the Floating links and it is activated!

    Please try to find the error in debug.log or in email and post it here so I can know where is the issue.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search icon in Select down icon’ is closed to new replies.