Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #712072
    #712075

    Hey!

    Can you please post the link to your website?
    You would need to add some custom CSS code to display the text next to logo and we can gladly provide you that :)

    Cheers!
    Yigit

    #712085

    since my site is under construction, there is an ip restriction now. if you can give me your ip address i can add you to exceptions. I’m using your “construction” demo as base, if that helps…

    #712089

    Hey!

    We only login to sites that are publicly accessible. If you could temporarily disable IP restriction, we can quickly look into your site. Otherwise, please post your logo and the code you used here so we can try to reproduce on our local installation :)

    Cheers!
    Yigit

    #712099

    I can’t disable the restriction, sorry about that.
    code I added to functions.php:

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
        $sub .= 'Text next to logo';
        return $sub;
    }

    source code:
    <div class='container av-logo-container'><div class='inner-container'><strong class='logo'><a href='link.to.my.site/'><img height='100' width='300' src='link.to.my.logo' alt='logo.alt.text' /><span class='subtext'>Text next to logo</span></a></strong></div></div>

    I changed the links in the code, sent the image link in private content. I hope this will be enough. thanks for your time :)

    to show you what I mean: example

    • This reply was modified 3 years ago by  xtrastr.
    #712489

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .logo img {
        float: left;
    }
    

    Best regards,
    Yigit

    #870856

    Don’t know if this is the right place to jump into the discussions. On my page, the alt tag for the logo is not showing, only the “finger” to mark this is a link. My customer want to have a specific text, which is always showing. So I used the solution code:

    add_filter('avf_logo_alt', 'avf_change_logo_alt');
    
    function avf_change_logo_alt($alt) {
    	 $alt = "New Alternate Text Here";
    	 return $alt;			
    }

    It works, because I see on Page Resource, the alt tag is changed, but still not showing on scrolling over the logo. Could you help me?
    Thanks for help, didn’t find a solution by searching
    René

    #872363

    Hi,

    Please use the following filter instead.

    function avf_logo_final_output_mod($logo, $use_image, $headline_type, $sub, $alt, $link) {
    	$title = 'CHANGE THIS TITLE';
    	$dimension = "height='100' width='300'"; //basically just for better page speed ranking :P
    	$logo = avia_get_option('logo');
    	$logo = "<img {$dimension} src='{$logo}' alt='{$alt}' title='{$title}' />";
    	$logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    	return $logo;
    }
    add_filter('avf_logo_final_output', 'avf_logo_final_output_mod', 10, 6);

    Change the title as needed.

    Best regards,
    Ismael

    #872999

    Hi Ismael

    thanks for the code. I can now put in the Title I want and the text is visible. Unfortunately, the logo is now not visible anymore (img src is missing). Small mistake in the code, I don’t see?
    Thank you for help
    René

    • This reply was modified 2 years, 1 month ago by  baiker.
    #873537

    Hi,

    Yes, there’s a minor error in the code. We modified it a bit. Please try it again.

    Best regards,
    Ismael

    #873613

    You’re the man, Ismael! Works. Perfect. Thank you very much for your help!
    René

    #873794

    Hi René,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #893014

    What was the final code that was used? Thanks!

    #893148

    Hi,

    This is the final code.

    function avf_logo_final_output_mod($logo, $use_image, $headline_type, $sub, $alt, $link) {
    	$title = 'CHANGE THIS TITLE';
    	$dimension = "height='100' width='300'"; //basically just for better page speed ranking :P
    	$logo = avia_get_option('logo');
    	if($logo = avia_get_option('logo'))
    	{
    		if(is_numeric($logo)){ $logo = wp_get_attachment_image_src($logo, 'full'); $logo = $logo[0]; }
    		$logo = "<img {$dimension} src='{$logo}' alt='{$alt}' title='{$title}' />";
    		$logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    	}	
    	return $logo;
    }
    add_filter('avf_logo_final_output', 'avf_logo_final_output_mod', 10, 6);

    Best regards,
    Ismael

    #982248

    Hello,

    I Have the same problem. I want to put my e-mailadres and my phonenumber to the right of the logo.

    Could you assist me please

    Thx

    #982372

    Hi,

    Thank you for getting in touch with us. There are two ways to achieve this.

    1. Using functions: Try adding the code provided by Ismael in the previous ticket.
    2. Using widgets: To create a header widget area from WordPress > Appearance > Widgets and add your text please check this post,

    Best regards,
    Vinay

    #1162143

    Hi friends,
    Is there is a function for the text around the logo on the left and right at the same time, or
    or existing functionality can be changed :

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

    Thanks for advice

    #1162820

    Hi,

    @darebvk: Yes, that should be possible. Please create your own thread and post a screenshot of the layout that you want to create. We’ll continue there.

    Best regards,
    Ismael

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘Text next to logo’ is closed to new replies.