Hi, I’ve been struggling with this code for 2 days now, part of the code is working, but the link, img isn’t showing properly.
First of, I’m trying to manually make multiple translations, and I’m trying to convert the original code to php code.
Original html code:
[php]
Featured Videos
[/php]New code im working on:
[php]<?php $currentlang = get_bloginfo(‘language’);
if($currentlang==“en-US”)
echo “<h2 class=“product-head”>Featured Videos<div class=“youtube”><a href=”<?php the_field('youtube_channel_link', 'option'); ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>’/images/youtube.jpg’">";
?>[/php]
I’ve been researching php quotations, and even tried ob_start, to cheat a little, but found out fast, that that wouldn’t work with multiple ‘elseif’ etc, for other languages.
Best regards,
Runi