Need a quick PHP Help

by 3 replies
4
I am using iblogpro theme by page line and i want to have a clickable button in the feature box rather than a simple. Here is the code

HTML Code:
</div>
                                        <div class="ftext">
                                            <?php echo do_shortcode($feature['text']);?>

<?php if($feature['link']):?>

 <a class="featurelink" href="<?php echo $feature['link'];?>">
                    
<?php _e('Click here to Win Free Droid Bionic',TDOMAIN);?></a>
                                                            <?php endif;?>
                                        </div>
How can i place a image in the feature box instead of the link?
#programming #php #short #tip
  • Replace

    Make sure you fill in the src with your images link.
    • [ 1 ] Thanks
  • phpbbxpert is right, the only thing that I can add about this is that you do not need to be putting <?php for every line, you can just echo your html code.
    • [1] reply
    • There is not really a point in that because I believe it is WordPress.
      So there are opening and closing PHP tags everywhere.
      Thats just the way they templated WordPress.

Next Topics on Trending Feed

  • 4

    I am using iblogpro theme by page line and i want to have a clickable button in the feature box rather than a simple. Here is the code HTML Code: </div> <div class="ftext"> <?php echo do_shortcode($feature['text']);?> <?php if($feature['link']):?> <a class="featurelink" href="<?php echo $feature['link'];?>"> <?php _e('Click here to Win Free Droid Bionic',TDOMAIN);?></a> <?php endif;?> </div> How can i place a image in the feature box instead of the link?