Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Uplift
  • #293352
    dyvimslorm
    Member
    Post count: 10

    Hi.

    I need some help with the search in my website. Basically, I need change the placeholder “Type and hit enter to search” for other text, but I can`t find some way to do this.
    Also i would ask about the search page of results. How I can change the structure of the page? I need remove all the sidebar right and change some features of the boxes with results like the date and the name of the writer.

    I hope that someone I can help me.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #293526
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, inside the child theme functions.php file paste this and change the strings: Type and hit enter to search

    	/*
    	*	HEADER SEARCH OVERRIDE
    	*	------------------------------------------------
    	*	@original - /swift-framework/core/sf-header.php
    	*
    	================================================== */
    	if (!function_exists('sf_get_search')) {
    		function sf_get_search($type) {
    	
    			if ($type == "search-off") {
    				return;
    			}
    	
    			$sf_options = sf_get_theme_opts();
    			$header_search_type = $sf_options['header_search_type'];
    			$header_search_pt = $sf_options['header_search_pt'];
    	
    			if ($type == "aux") {
    				$type = $header_search_type;
    			}
    	
    			$search_output = "";
    	
    			if ($type == "full-header-search") {
    				$search_output .= '<li class="menu-search parent"><a href="#" class="header-search-link fs-header-search-link"><i class="sf-icon-search"></i></a></li>'. "\n";
    			} else {
    				$search_output .= '<li class="menu-search parent"><a href="#" class="header-search-link header-search-link-alt"><i class="sf-icon-search"></i></a>'. "\n";
    				$search_output .= '<ul class="header-search-wrap sub-menu"><li><form method="get" class="header-search-form" action="'.home_url().'/">';
    				if ($header_search_pt != "any") {
    				$search_output .= '<input type="hidden" name="post_type" value="'.esc_attr($header_search_pt).'" />';
    				}
    				$search_output .= '<input type="text" placeholder="'.__("Type and hit enter to search", 'uplift').'" name="s" autocomplete="off" /></form></li></ul>'. "\n";
    				$search_output .= '</li>'. "\n";
    			}
    	
    			return $search_output;
    		}
    	}

    You manage the search result page layout here: Theme Options => Archive/Category Options

    #293711
    dyvimslorm
    Member
    Post count: 10

    How i can install and the supplied child theme? I did’t find nothing about that.

    #293750
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    The child theme zip file is provided in your download files, upload that to Appearance > Themes and activate it. Then go to Appearance > Editor and paste the code above in functions.php

    – Kyle

    #294008
    dyvimslorm
    Member
    Post count: 10

    I did all the steps but the problem persists. I can`t change the placeholder.

    Do you have other way to resolve the issue?

    #294010
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,
    Can you provide me your site url and some admin credentials to check if you did it properly?

    Use the private reply.

    -Rui

    #294012
    dyvimslorm
    Member
    Post count: 10
    This reply has been marked as private.
    #294015
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    just to be sure, did you activated the child theme?

    -Rui

    #294017
    dyvimslorm
    Member
    Post count: 10
    This reply has been marked as private.
    #294135
    David Martin – Support
    Moderator
    Post count: 20834

    Will FTP access & WP admin access to assist further.

    – David.

    #299092
    dyvimslorm
    Member
    Post count: 10
    This reply has been marked as private.
    #299287
    David Martin – Support
    Moderator
    Post count: 20834

    No we need to check what you have done, else it is simply guess work.

    Thanks.

    #302226
    dyvimslorm
    Member
    Post count: 10
    This reply has been marked as private.
    #302291
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    What is the admin url where I can login with the admin credentials?

    -Rui

    #302343
    dyvimslorm
    Member
    Post count: 10
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register