Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1225370

    I am trying to make the logo on GoodNewsForTheWorld appear BESIDE the words Good News for the World.
    Instead the logo is going UNDER the words.

    Have a feeling problem dwells in the css.

    Could you take a look at:it, please — and give me your advice?

    https://goodnewsfortheworld.com

    #1225371

    I meant IMAGE — there’s an image added to the text, at the end.

    #1225372

    In Functions.php, looks something like this:

    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 = '<span class="logo-span span-1">Good </span><span class="logo-span span-2">News </span><span class="logo-span span-2">for the</span><span class="logo-span span-3"> World</span><img src="https://goodnewsfortheworld.com/wp-content/uploads/2020/06/book-and-world-pinged.png" style="width:40px;">'; //"LOGO TEXT";
     
     
      $subtext = "";
      $logo     = "<span class='logo'><h1><a href='".$link."'>".$logotext.$subtext."</a></h1></span>";
    
      return $logo;
    }
    #1225827

    Hi CharlieTh,

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

    #1225991

    Logo Should be Good News for the World 🌎

    Only in place of emoji should be the image you see on the page.
    Should be words, followed directly by image

    Right now, on the page, you see (incorrectly)
    Good news for the world
    🌎

    I.e., the logo (represented by emoj) is incorrectly UNDER not correctly BESIDE the words.

    Perhaps area needs to be widens because it is causing wordwrap.

    Any idea what css would be to solve this?

    #1225992

    Doesn’t show properly in that message.

    Good News for the World 🌎

    That is what SHOULD look like.

    #1226111

    Hi CharlieTh,

    It looks like in this case, it’s better to make a png image with all the elements that you need on them.

    Best regards,
    Victoria

    #1226132

    I can’t make containing element or something else slightly wider to stop wrapping activity. Css with nowrap perhaps.

    #1226412

    Hi,

    Thanks for the update. I’m not sure if you need any further help with this or not?

    Best regards,
    Rikard

    #1226558

    Actually, meant to ask IF I could possibly make containing element or something else slightly wider to stop wrapping activity. Css with nowrap perhaps?

    Suggestions?

    #1226575

    Hi CharlieTh,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    #top .logo {
        width: 50vw;
    }
    #top .logo img {
        display: inline;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1229024

    You are brilliant, Victoria. That was IT!

    Thank you so much.

    Feel free to close this…and give yourself a gentle pat on the back!

    #1229165

    Hi CharlieTh,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Text logo with added image beside text – image ends up UNDER logo text’ is closed to new replies.