
-
AuthorPosts
-
February 9, 2016 at 10:50 pm #580628
Greetings, first of all thanks for an excellent theme :)
i tried to search the topics regarding to my problem and unfortunately couldn’t find a suitable solution :( So, if i can get some help, i’d be very pleased.I am having some problems with the header. I’d like to add a second logo to the header on the right which can be seen on all the responsive states of the website (phones and tablets included) I’ve tried the previous solutions of the staff and i cannot say i succeeded, coz some of them are outdated, some of them don’t resize correctly.
Thanks in advance
CanScreenshot: http://imgur.com/bqfCbf1
-
This topic was modified 9 years, 5 months ago by
caisson.
February 9, 2016 at 11:36 pm #580646Hey caisson!
can you show us which option u used, and did not resized correctly, so we can update the code?
Thanks a lotRegards,
BasilisFebruary 10, 2016 at 12:08 am #580659Sure, i used Josue’e solution which he was posted on June 16, 2014.
I am using the Logo Left, Menu Below, Large Seperator, Slim Header Size options in header.adding the code to functions.php
function second_logo($logo) { $logo .= '<strong class="second-logo logo bg-logo"><a href="_PUT_URL_HERE_"><img src="_PUT_LOGO_URL_HERE_"></a></strong>'; return $logo; } add_filter('avf_logo_final_output', 'second_logo');
Quick CSS from General Styling (I modified left to 1000px)
.second-logo { left: 250px !important; }
Results I Get
Screen One: http://imgur.com/OJDqPDl
Screen Two: http://imgur.com/pVjPnGq-
This reply was modified 9 years, 5 months ago by
caisson.
February 10, 2016 at 6:40 pm #581305Hi!
Can you please post temporary login credentials here privately? Coming soon plugin is active currently :)
Best regards,
YigitFebruary 10, 2016 at 10:42 pm #581361Hello Yiğit;
just opened a temp admin user for you guys,
you can check the private content…
Best Regards ( Şimdiden teşekkürler :) )
CanFebruary 14, 2016 at 8:30 am #582880Hi!
We modified the code a bit because there’s a jQuery script that duplicates the logo markup.
add_filter('avf_logo_final_output', 'avf_logo_final_output_mod', 10, 6); function avf_logo_final_output_mod($logo, $use_image, $headline_type, $sub, $alt, $link) { $secondlogo = "<".$headline_type." class='secondlogo'><a href='_PUT_LOGO_LINK_HERE_'><img height='100' width='300' src='http://www.mobileinhouse.com/degisim/wp-content/themes/vecu/images/layout/logo.png' alt='_PUT_LOGO_ALT_HERE_' title='_PUT_LOGO_TITLE_HERE_'/></a></strong>"; $logo = $logo . $secondlogo; return $logo; }
Adjust the logo style in the Quick CSS field.
Regards,
IsmaelFebruary 14, 2016 at 11:45 am #582908Hello, thanks for the help Ismael, just a little question.
it’s showing 4 logos (2 big, 2 small). can’t determine if is that normal or not. does it have to do with the css styling?
thanks againFebruary 15, 2016 at 6:56 am #583131Hi!
We already fixed that. Please make sure that you’re not looking on a cached version of the site.
Cheers!
IsmaelFebruary 16, 2016 at 3:58 pm #584243Hi Again,
thanks for the reply, but i cannot display a 2 logo only version of the site although i updated the logos and did all the cache-cleaning…
if it is not too much trouble, can you please check again?
Regards,
CANFebruary 16, 2016 at 4:45 pm #584270Merhabalar Can!
Code worked totally fine on my end. I was looking into your installation to see what is wrong but accidentally caused fatal error. Please go to wp-content/themes/enfold/functions.php file and remove the code or if you do not mind posting FTP access here privately, i can fix it. Sorry about that!
Cok uzgunum!Best regards,
YigitFebruary 16, 2016 at 4:53 pm #584277Selamlar Yiğit,
well, i did correct the fatal error (you moved the code upwards, which i did not notice earlier and tried to re-insert it, which resulted with a fatal error )
you can now check the site again, and here is the screenshot.-
This reply was modified 9 years, 4 months ago by
caisson. Reason: added private content
February 16, 2016 at 5:21 pm #584287Merhabalar!
Have you made any other changes on theme files?
If you do not mind removing extra logos with custom CSS, please use following code in Quick CSS.logo:nth-child(1), .secondlogo:nth-child(3) { display: none; }
Regards,
YigitFebruary 16, 2016 at 5:28 pm #584293i do not remember making any extra changes…
i used the quick css you’ve provided and works like a charm on desktop version, cha-ching!! :)The only thing that remains is;
the responsive states (second logo is not shown on smaller screens. And on the mobile version, there are 2 same logos (the black one))
Thanks again guys-
This reply was modified 9 years, 4 months ago by
caisson.
February 19, 2016 at 5:22 am #585837Hey!
Did you transfer the site? The url above doesn’t exist anymore.
Best regards,
IsmaelFebruary 19, 2016 at 5:38 pm #586190yes, unfortunately :( but will put it back today or tomorrow
ThanksFebruary 19, 2016 at 5:42 pm #586194 -
This topic was modified 9 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.