Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #974090

    I am trying to add text next to my logo, by following this link? https://kriesi.at/documentation/enfold/logo/#toggle-id-2-closed

    I have add the code below to funtions.php

    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= get_bloginfo(‘name’);
    return $sub;
    }

    There are a few issues now:
    1. The text is in normal font. Can I change to <h1>?\
    2. When i scroll down, the words become two lines, and are both broken. Any way to solve that?

    Thanks.

    #974091

    Also I have tried keying in company name directly by using code:

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
        $sub .= '<h1>Company Name</h1>';
        return $sub;
    }

    Since there are some Chinese characters, the code could not be saved properly.

    #974099

    I just integrate the word into the logo by photoshop, as a picture. The problem is solved. Thanks.

    #974102

    you can do it this way you mentioned above – but there has to be additional css to see the subtexts !
    They are in the logo container – so it has to get the overflow: visible.

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub)
    {
      $sub .= "<h1 class='logo-title'>";
      $sub .= get_bloginfo( 'name', 'display' );
      $sub .= "</h1>";
      $sub .= "<span class='logo-title logo-subtitle'>";
      $sub .= get_bloginfo( 'description', 'display' );
      $sub .= "</span>";
      return $sub;
    }

    with that method it is possible to get rid of these texts on scrolled header like here on kriesi board – see above

    or you use a svg for that – than you can do some nice things to the path itself on hovering or scrolling:
    https://webers-testseite.de/cynthia/

    #974239

    Hi tintinshop,

    Glad you got it working for you! :)


    @Guenni007
    thank you for another solution.

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.