Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #813519

    Hi Kriesi – Team,

    I’d like to use two different header pictures – one on the left and one on the right side. How can i realize that?

    Thanks in advice
    RS

    #813534

    Hey led-consult,

    Please, may you provide to us your website link?

    Best regards,
    John Torvik

    #813537

    This is not really available…the side is under construction.But you can take a look. At the moment i have a pdf from a designer.

    BR
    Raphael

    #813574

    well there is for example the opportunity to insert two images with logo function – each with a different link.

    you can see here a Quick solution: https://webers-testseite.de/
    not optimized for responsive case : because — sorry no time now.

    #813724

    That looks not so bad. How can i implement it into the Enfold theme? header.php?

    BR

    #813762

    it is more or less only functions.php of child-theme and a bit css.

    if you like to insert an svg or png/jpg it is a bit different:

    /** for svgs only   ******/
    function first_logo($logo) {
    $logo .= '<span class="logo first-logo"><a href="path to an url1">' ;
    $logo .= file_get_contents("/wp-content/uploads/logo1.svg");
    $logo .= '</a></span>';
    return $logo;
    }
    add_filter('avf_logo_final_output', 'first_logo');	
    
    /** for the normal case of a png or jpgs   ******/
    function second_logo($logo) {
    $logo .= '<span class="logo second-logo"><a href="url2" target="_blank">' ;
    $logo .= '<img src="/wp-content/uploads/logo2.png"/>';
    $logo .= '</a></span>';
    return $logo;
    }
    add_filter('avf_logo_final_output', 'second_logo');

    Comment: You see that these images stay a “logo” only a second class (fist-logo, second-logo, etc.) is given to them.

    on some reasons it is better to get rid of the logo inserted by enfold options dialog. (z-index, positioning etc.)

    if you will place a svg Graphic than a bit more is to be done in quick css!

    the width an heights are dependent on your graphics – so you have to play with it.

    div .logo { float: none}
    .logo:first-child img { display: none}
    .logo img {max-width: 320px}
    .logo.first-logo {z-index: 3}
    .logo.second-logo {z-index: 2}
    .logo.second-logo {width: 100%}
    .logo.second-logo a {float: right}
    .logo.first-logo a, .logo.second-logo a {display: inline-block}

    and in responsive case (play with the 768px concerning to your logo-images) :

    @media only screen and (max-width: 768px) {
    .logo.second-logo a { float: left }
    .responsive #top .logo { height: auto }
    .responsive #top .logo:first-child { display: none }
    }
    #814328

    Thanks,

    i tried this, but now i have the problem the first logo is not visible yet and the menutext is in the picture…

    #814694

    Hi,

    Yea, that is happening because of the modifications amount.
    If you need to keep going with those, please consider to hire a freelancer who will be able to help you with all the process.

    Let us know if there is anything else we can do for oyu.

    Best regards,
    Basilis

    #814836

    if i could see your site i will do my best.
    but with menu on left or right (only if it has 1 or 2 listpoints) this will not work. Only with menu down or over the menu it will be meaningful.

    the first logo is not visible. Did you insert 2 logos this way or do you have the one by enfold options and added another one by this code?
    The css above concerns to my advice that you input 2 Graphics this way and ( .logo:first-child img { display: none} ) displayes the enfold-logo not !

    • This reply was modified 7 years, 4 months ago by Guenni007.
    #815771

    I did it with you code, but saw an option with enfold too…(in the php)
    www1.dr-preissl.at -> this is the side

    thank you very much

    #815831

    hm there must be something going wrong – or you mixed something in addition to my code see your source code:

    Click to enlarge images

    you see there are some “logos” as child in logo container ( the one of enfold too) and than – i guess from my code an adjacent to logo container.

    so please only use one of the methods and than i’ll come back and try to solve the issue.

    PS: this is the way my source code looks like with code above:

    • This reply was modified 7 years, 4 months ago by Guenni007.
    #815834

    btw – please tell me the code how you get it in logo container.

    #815838

    and did you read my comment on header styling. With a navigation right – where should an extra image positioned on the right ?
    i think it is only meaningfull with navigation over or under Logo

    #816056

    Now i only insert it in the enfold code ->
    // additional logo
    add_filter(‘avf_logo_subtext’, ‘avf_logo_addition’);
    function avf_logo_addition($sub) {
    $sub .= ““;
    $sub .= ““;
    return $sub;
    }

    but now are both logos not visible…

    #816229

    please take my code because it is much easier to handle the positioning of the two images.
    Get rid of the code with sub and insert this :

    function first_logo($logo) {
    $logo .= '<span class="logo first-logo"><a href="http://www1.dr-preissl.at" >' ;
    $logo .= '<img src="/wp-content/uploads/2017/06/PRE_Logo_RGB_150_RZ-161x300.png"/>';
    $logo .= '</a></span>';
    return $logo;
    }
    add_filter('avf_logo_final_output', 'first_logo');
    
    function second_logo($logo) {
    $logo .= '<span class="logo second-logo"><a href="http://www1.dr-preissl.at" >' ;
    $logo .= '<img src="/wp-content/uploads/2017/06/cropped-PRE_Logo_RGB_150_RZ.png"/>';
    $logo .= '</a></span>';
    return $logo;
    }
    add_filter('avf_logo_final_output', 'second_logo');
    • This reply was modified 7 years, 4 months ago by Guenni007.
    #816660

    you can see here a page with that construct and your logo (btw i take the one logo twice – i do not see any difference)

    https://webers-testseite.de/kokon/pages/meet-the-team/
    (btw.: this is with logo left menu below – it is easier to find the css rules for that )

    so that is the reason why i have to ask you for the deeper sense behind that – only symetrical reasons?
    look to the responsive case if you shrink your browser window to something smaller than 500px .
    A construct with two different logos with different links like here : https://webers-testseite.de/
    the one link goes to root the other to a new site on a blank target. That makes sense.

    #816710

    Yea thats it – but how i can modify my menu like yours. I must say yours looks much much better ;) Is it possible in the front end or need i modify the css?
    Thank you.

    BR

    • This reply was modified 7 years, 4 months ago by led-consult.
    #817352

    Also – anhand deiner Seite sehe ich ja, dass wir uns wohl auch auf deutsch unterhalten können.

    Du musst noch einige Einstellungen verändert haben, was das responsive Verhalten betrifft. Denn wenn du mein Browserfenster verkleinerst, siehst du keinerlei Sprünge bezüglich der Größe.

    Das Menu kannst du platzieren wo du willst, links mittig oder rechts. via Quick css – sag wie du es willst. ausserdem hast du in den Enfold Einstellungen wohl die Variante mit den kleinen Separatoren gewählt. – Bei mir jetzt mal nicht – ist Geschmackssache.

    Welchen Grund hat es , dass du einmal das eine dann das andere Logo einsetzt? ich sehe keinen Unterschied – ausser dem Größenunterschied !
    Weshalb dann auch im Frontend die Logos unterschiedlich groß sind !

    Du kannst in beide Codes die gleiche Bilddatei setzen

    #817355

    wenn du auf dem mobilen Menu dein Logo haben möchtest setze mal das hier in Quick css ein:

    #mobile-advanced {
    	background-image: url("/wp-content/uploads/2017/06/cropped-PRE_Logo_RGB_150_RZ.png"); 
    	background-position: left top; 
    	background-repeat: no-repeat; 
    	background-size: 10% auto; 
    	padding: 15% 0 !important ;
    }
    #817413

    mit dem shrinking header könntest Du auch folgendes machen:

    bitte scrollen und oder browserwindow verkleinern

    https://webers-testseite.de/kokon/pages/about-us/

    #817668

    Ja deutsch ist auch ok! danke nochmal für die tolle Hilfe, jetzt hab ich eigentlich so ziemlich den dreh raus, wo ich wie was machen muss. Bei der Mobile-Ansicht ist das zweite Bild leider noch nicht sichtbar, muss ich mal schauen… Nur in php bin ich nicht so vertraut muss ich leider gestehen. Der Schrinking header ist cool – wie würde das funktionieren?

    BTW: habe das CSS nun ein wenig weiter adaptiert – please take a look :-)

    div .logo { float: none}
    .logo:first-child img { display: none}
    .logo img {max-width: 320px}
    .logo.first-logo {z-index: 3}
    .logo.second-logo {z-index: 2}
    .logo.second-logo {width: 100%}
    .logo.second-logo a {float: right}
    .logo.second-logo a {padding-top: 40px}
    .logo.first-logo a, .logo.second-logo a {display: inline-block}

    @media only screen and (max-width: 768px) {
    .logo.second-logo a { float: left }
    .responsive #top .logo { height: auto }
    .responsive #top .logo:first-child { display: none }
    }

    #header_main_alternate { border : medium none; }

    #header_main_alternate {float: right}
    #mobile-advanced {
    background-image: url(“/wp-content/uploads/2017/06/cropped-PRE_Logo_RGB_150_RZ.png”);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 10% auto;
    padding: 15% 0 !important ;
    }

    • This reply was modified 7 years, 4 months ago by led-consult.
    #817679

    bitte nimms mir nicht übel – aber es wäre schön, wenn Du dir erstmal mit dir selbst einig bist, was du möchtest – heißt wie dein Header aussehen soll, und wie er reagieren soll, wenn geshrinkt wird bzw . auf kleinen Screens aussehen soll.

    Momentan sieht der Header wieder ganz anders auf deiner Seite aus, also – gerne steige ich hier wieder ein, wenn es klar ist wo es hingehen soll.

    #817685

    nehme ich nicht, ist vollkommen legitim. Hab eben auch gestern erst das neue Bild bekommen. Habe dir das layout welches mir zur Verfügung steht in die Mediathek eingefügt – link, hier ist anstatt der “Schlange” das P – es wird aber in Zukunft die Schlange verwendet.

    Danke… und sry für die Umstände.

    • This reply was modified 7 years, 4 months ago by led-consult.
    #825206

    Hi,

    I will close the topic feel free to create a new one if you need anything else.

    Best regards,
    Basilis

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Two Header Pictures’ is closed to new replies.