[Support request] 2.1: Text before search-item in primary navigation

Home Forums Support [Support request] 2.1: Text before search-item in primary navigation

Home Forums Support 2.1: Text before search-item in primary navigation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #565840
    xdaniel

    Hello GP-Team,

    sometime ago you gave me a code to write some text before the search icon. With todays uodate this code breaks my navigation bar. Anything I can do to get this back?

    The code was:

    .search-item a:before {
    content:" Suchen";
    float:right;
    padding-left:5px;}

    You can see the problem here https://kulturmanagement-online.de, but it also happened on other sites I used it.

    Best, Daniel

    GeneratePress 2.1
    GP Premium 1.6.2
    #565851
    Tom
    Lead Developer
    Lead Developer

    Ah yes, we’re using that pseudo selector for the icon now.

    Instead, you can just make use of the screen reader text:

    .search-item .screen-reader-text {
        height: auto;
        position: relative !important;
        width: auto;
        clip: auto;
        margin: 0;
        clip-path: none;
        padding-left: 10px;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.