This topic has 5 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #144429
     linkpoin2
    Participant

    I would like to add the search form to the body of a single page vs. just the header menu (I can still leave it there).  I am using the buddyapp theme.  I need it to work same as the search in the header showing dropdown of groups, forums, etc.   but need to add to a page.

    is there a specific shortcode I can use or like Kleo insert a php string or something using visual composer?

    thanks

    #144505
     Laura
    Moderator

    Hello, i do not understand what do you mean, can you share a screenshot of the element you want to add? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #144571
     linkpoin2
    Participant

    sorry, I thought it was pretty clear. i would like to have the theme ajax search bar #main-search (the one in the top of the theme) in the center of one of my pages and in kleo there is a shortcode to do that?

    Easiest way to explain is to add the standard ajax search in a page… kinda like you have here http://seventhqueen.com/themes/kleo/get-connected/ (but in my request, not with the fields from bpsearch… just the standard one from the theme)

    in the BuddyApp theme you have this code below in the header for the AJAX search and I would like to place that in a page so the functionality works.

    <form id=”searchform” class=”search-form kleo-search-wrap kleo-search-form ” method=”get” action=”http://dugoodr.com/&#8221; data-context=”members,groups”><input id=”main-search” class=”header-search ajax_s” autocomplete=”off” type=”text” name=”s” value=”” placeholder=”Search”><button type=”submit” class=”header-search-button”></button>

    </form>

    #144587
     linkpoin2
    Participant

    example attached. it would be middle of a blank template page though (like the Contact Us or About Us page). Just need shortcode or other option of code for the ajax search bar to work in teh site

    Attachments:
    You must be logged in to view attached files.
    #144791
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #144901
     Radu
    Moderator

    Hi,

    That it’s not really possible because if you will have the breadcrumb structure longer that example photo those will overlap over the search form.

    That space it’s destinated to the title area and breadcrumbs.

    If you want to use to render that search form somewhere else add this function to wp-content/themes/buddyapp-child/functions.php

    COPY CODE
    
    
    function buddyapp_search_shortcode() {
    
        $context = sq_option( 'search_context', '' );
        echo kleo_search_form(array('context' => $context));
    
    }
    
    add_shortcode('buddyapp_search_shortcode','buddyapp_search_shortcode');
    

    Then use this shortcode [buddyapp_search_shortcode] to render it

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?