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

    Hi,
    I want to use the site title and description instead of a logo. I have used some code for quick css and modification to the functions file in child theme that I got from this forum. There have been many postings on this. The one I am using is below. I still need a modification or perhaps use a different one entirely?? The issue is that the first line wraps on mobile and runs into the second line which is the site description. Another issue is that I would like line 2 to be centered.

    Here is my temp site – http://k8r.223.myftpupload.com/

    Changes to functions file in child theme

    //——————————-
    // function – Text Logos
    //——————————-
    add_filter(‘avf_logo_final_output’, ‘avf_text_logo_final_output’);

    function avf_text_logo_final_output($logo) {
    $link = apply_filters(‘avf_logo_link’, home_url(‘/’));
    $logotext = “Charlotte Meehan”;
    $subtext = “Playwright | Professor | Artistic Director”;
    $subtext = “<span class=’subtext’>$subtext</span>”;
    $logo = “<span class=’logo’><h1>“.$logotext.$subtext.”</h1></span>”;

    return $logo;
    }

    Changes added to quick css

    /* Text logo styling */

    #top .logo,
    #top .logo a {
    overflow: visible;
    }

    #top .logo {
    background: transparent;
    display: flex;
    align-items: center;
    }
    #top .logo .subtext {
    font-size: 14px;
    color: #000000;
    position: absolute;
    width: 100%;
    left: 0;
    top: 25px;
    }

    Thank you

    #1035704

    Hey kmmackey,

    I checked your site and the subtitle looks fine to me. Please see the attached screenshot.

    If you still have any issue please upload a screenshot/mockup to one of the below sites and share the link here so we can help you better :)

    https://snag.gy/
    https://ctrlv.cz/en/
    https://imgur.com

    Best regards,
    Vinay

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