Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Nikki T on "How to make Polylang compatible with frontpage set up through theme options?"

$
0
0

Oh and to show you what I'm talking about.. this is the box-codes that display 4 boxes on the front page:

<!--boxes-->
		<div id="box_container">

		<?php for ($i = 1; $i <= 4; $i++) { ?>

				<div class="boxes <?php if ($i == 1) {echo "box1";} ?><?php if($i == 2) {echo "box2";} ?> <?php if($i == 3) {echo "box3";} ?>">
						<div class="box-head">

	<a href="<?php echo of_get_option('box_link' . $i); ?>"><img src="<?php if(of_get_option('box_image' . $i) != NULL){ echo of_get_option('box_image' . $i);} else echo get_template_directory_uri() . '/images/box' .$i. '.png' ?>" alt="<?php echo of_get_option('box_head' . $i); ?>" /></a>

					</div> <!--box-head close-->

				<div class="title-box">						

				<div class="title-head"><?php if(of_get_option('box_head' . $i) != NULL){ echo of_get_option('box_head' . $i);} else echo "Box heading" ?></div></div>

					<div class="box-content">

				<?php if(of_get_option('box_text' . $i) != NULL){ echo of_get_option('box_text' . $i);} else echo "Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing. Donec est est, rutrum vitae bibendum vel, suscipit non metus." ?>

					</div> <!--box-content close-->

				</div><!--boxes  end-->

		<?php } ?>

		</div><!--box-container end-->

Can you see how this has to interact with Polylang? ._.


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>