New Landing How can we help? Cardinal Search field result page = 404

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Cardinal
  • #117658
    Nhaugaard
    Member
    Post count: 164

    Hi guys.
    So i’m trying to implement a search form in the slider. I’m getting there, but when i search something it just takes me to the 404 page not found page ๐Ÿ™‚

    This is the code i used to display the search field:

    <form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
    <div><input type=”text” size=”put_a_size_here” name=”s” id=”s” value=”Write your search and hit Enter” onfocus=”if(this.value==this.defaultValue)this.value=”;” onblur=”if(this.value==”)this.value=this.defaultValue;”/>
    <input type=”submit” id=”searchsubmit” value=”Search” class=”btn” />
    </div>
    </form>

    I know the code is at least 4 years old, so i don’t know if that has something to do with it ๐Ÿ™‚
    Or maybe I have to activate the search somewhere? ๐Ÿ™‚

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #117664
    Nhaugaard
    Member
    Post count: 164

    Figured it out. Just used the search form from the Page Builder ๐Ÿ™‚ Works like a charm.

    But if it’s easy to explain i would love to know why the other solution don’t work? ๐Ÿ™‚

    #117667
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can’t just add php when not using a php file

    – Kyle

    #117673
    Nhaugaard
    Member
    Post count: 164

    Oh okay ๐Ÿ™‚ I new to the whole php thing ๐Ÿ™‚

    Maybe you can help me style the text inside the search field before you type in your search words.
    It says “.search” but it is displayed in the top of the searchfield and in grey. And when i try to style it i can only style the text the user types in, and now the “.search” text ๐Ÿ™‚

    Image one: before typing (what i need to style to fit the “search” behind it)
    Image two: When user types, it looks great.

    Attachments:
    You must be logged in to view attached files.
    #117676
    Nhaugaard
    Member
    Post count: 164

    When i use padding to try and place the “.search” properly, i just push down the input field (user text) instead.

    #117741
    Nhaugaard
    Member
    Post count: 164

    And is there a way to make the searchfield reset when the page is changed. So that when you return to the frontpage, the previous searchword is not displayed.

    #117910
    Nhaugaard
    Member
    Post count: 164
    This reply has been marked as private.
    #117914
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    This is what I see (see screenshot) What’s the issue?

    – Kyle

    Attachments:
    You must be logged in to view attached files.
    #117934
    Nhaugaard
    Member
    Post count: 164
    This reply has been marked as private.
    #118177
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Which browser?

    – Kyle

    #118207
    Nhaugaard
    Member
    Post count: 164

    Chrome

    #118208
    Nhaugaard
    Member
    Post count: 164

    The same thing in Safari ๐Ÿ™‚

    #118211
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try adding this to your custom css:

    .search-widget input.input-large {
    line-height: 47px!important;
    }

    – Kyle

    #118230
    Nhaugaard
    Member
    Post count: 164

    Thank you very much Kyle! that worked with 60px ๐Ÿ™‚
    May i ask if it’s possible to change the font color “grey” to “white” ? I tried for i don’t know how long now ๐Ÿ™‚

    Thanks alot Kyle.

    #118231
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’m afraid not sorry, input placeholders are not possible to change at all

    – Kyle

Viewing 15 posts - 1 through 15 (of 17 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