This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Removing the proclose button and adding a title

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Removing the proclose button and adding a title

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #49164
    YansYans
    Participant

    Hi,
    1.
    How can I disable/remove the X (close) button that appears in the search input box?

    When clicking it the results disappear, I don’t want them to disappear.

    2.
    I would like to add a title above the search input box, is there a way to do it?

    Thanks!

    #49166
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    1. Yes – the option is a little bit tucked away, but you can turn it off here: https://i.imgur.com/FLDNzoD.png

    2. Surely! If you use the search shortcode/module/widget in a page or somewhere in a page builder, then of course the simplest way is to add a heading/paragraph module above it and write the title. I assume that is not possible in your case.
    There is still a chance programmatically:

    add_action(
    	'asp_layout_before_shortcode',
    	function () {
    		?>
    		<h2>Title here</h2>
    		<?php
    	}
    );

    Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

    #49167
    YansYans
    Participant

    Also, is it possible to add a title to the settings block?

    What I am trying to do is in the attached image.

    Thanks

    #49169
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I think the easiest way to tackle that is via using the shortcodes with HTML, something like:

    <h2>Keywords</h2>
    [wd_asp id=1]
    <h2>Settings</h2>
    [wpdreams_asp_settings id=1element='div']
    #49170
    YansYans
    Participant

    Sorry, I didn’t see you answered before posting my last question.

    Thank you for the fast reply!

    I am using DIVI, is there any link between ASP and DIVI?

    #49172
    YansYans
    Participant

    I created my news search page using the DIVI “Text” module and the “ASP” functionality of the editor, together with your suggestion.
    Thanks for your help.
    This ticket can be closed.

    #49173
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Removing the proclose button and adding a title’ is closed to new replies.