Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Add Extra Logo on right


Question

Posted · Report post

Hi Guys

How would I add another logo image on the right hand side of my page? Refer to the attached image, I want the logo on the right in alignment witht he logo on the left.

Danni at PageLines said it will require a hook, if someone could point me in the right direction on how to insert a hook I can handle the html and styling.

Thanks

post-42029-0-17800300-1348740173_thumb.p

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Hi,

Do you have a link to your other logo/image please.

Share this post


Link to post
Share on other sites

Posted · Report post

I do, I've atached it here.

post-42029-0-99991500-1348740796_thumb.p

Share this post


Link to post
Share on other sites

Posted · Report post

OK, in order to add a hook you will need to be using either the Base child theme or the PageLines Customisation plugin.

Then add the following code to your child themes functions.php file or if you're using the PageLines Customisation plugin, add the code to the plugins functions.php file.


add_action('pagelines_before_branding_icons', 'second_logo');
function second_logo(){ ?>

<a target="_blank" href="ADD A URL IF YOU LIKE" style="float:right;">
<img src="Add URL to IMAGE" alt="Second Logo">
</a>

<?php

}[/CODE] You will need to add a link to your image and the path to where your image is located. The you will need to position your logo and to do so, will require some custom CSS, add the following code to your custom CSS:
[CODE]
.section-branding .mainlogo-link, .section-branding .mainlogo-img {
max-width: 100%;
display: inline !important;
float: left;
}

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites