Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #611497

    Hi Guys,

    Thank you for this fantastic theme, third happy client and one happy developer :-)

    I have a small issue, I need to add an extra link to the header when responsive.
    I use to have it on earlier versions but since last upgrade I don’t seem to be able to implement this on PHP.

    I used to insert the following to line 122 of helper-main-menu.php and it worked fine:

    ?>
                            <div class="left-icon">
                                <a href=<?php if(ICL_LANGUAGE_CODE == 'fi'){
    //link to Finnish Book a table
    $linki = get_permalink(753);
    }else{
    //Link to English Book a table
    $linki = get_permalink(1992);
    }echo $linki; ?> title="Book a table"><img src="<?php echo get_template_directory_uri();?>/images/layout/book-a-table.png" /></a>
                            </div>
                                <?php

    The result was that on responsive, I would have on header “My Icon with link(left) -The Logo(center) – the responsive main menu(Right)” as in this example: http://prntscr.com/aqywi0 (green square is my Icon position)
    But now when I try my code I just can’t get the icon to stay within <div class=”inner-container”> so is shows on the left top corner of class “container av-logo-container”

    I would really appreciate some help here, my php skills are rather limited. This should only show “if responsive”.

    Thank you
    Daniel

    #612334

    Hi Dewdan!

    Access provided is not working, please re-check.

    Cheers!
    Josue

    #612500

    Hi Josue,

    Sorry about that, I corrected it now , and tested access so it is working.

    • This reply was modified 7 years, 11 months ago by Dewdan. Reason: Changed to development site !
    #612580

    Hey!

    I didn’t find your custom code in helper-main-menu.php, can you please re-add it so we can take a look?

    Cheers!
    Josue

    #612619

    Hi Josue,

    I have added now the code, in helper-main-menu.php, also a small code in functions-enfold.php to add the icon:

    $imgAttr=wp_get_attachment_image_src(1793);

    I really appreciate your help, you can see now that when going responsive the icon is stuck in the corner. ( This is now working only on EN version since we are ONline)

    • This reply was modified 7 years, 11 months ago by Dewdan. Reason: moved installation to development for upgrade, I got new upgrade today, I will upgrade after solution
    #614564

    Hey!

    Please use this to adjust the position of the left icon or logo:

    .left-icon {
        left: 50px;
        top: 20px;
        position: relative;
    }

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.