-
AuthorPosts
-
April 11, 2016 at 6:42 pm #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
DanielApril 13, 2016 at 3:45 am #612334Hi Dewdan!
Access provided is not working, please re-check.
Cheers!
JosueApril 13, 2016 at 8:50 am #612500Hi Josue,
Sorry about that, I corrected it now , and tested access so it is working.
- This reply was modified 8 years, 7 months ago by Dewdan. Reason: Changed to development site !
April 13, 2016 at 11:31 am #612580Hey!
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!
JosueApril 13, 2016 at 12:04 pm #612619Hi 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 8 years, 7 months ago by Dewdan. Reason: moved installation to development for upgrade, I got new upgrade today, I will upgrade after solution
April 15, 2016 at 6:24 am #614564 -
AuthorPosts
- You must be logged in to reply to this topic.