Activity Stream
48,167 MEMBERS
6798 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member

    Default [Req] How to Add Image instead of Text in PHP

    Hello Friend I just need your help to add image in my php file instead of text :
    Here is my file's php code
    PHP Code: 
    <?php if ( is_single() ) { ?>
        <div class="navigation" style="border-top:0;">
            <div class="alignleft"><?php previous_post_link('%link','&laquo; Previous Post'); ?></div>
            <div class="alignright"><?php next_post_link('%link','Next Post &raquo;'); ?></div>
            <div style="clear:both;"></div>
        </div>
    <?php } else { ?>
        <?php if ( function_exists('wp_pagenavi') ) { ?>
            <?php wp_pagenavi(); ?>
        <?php } else { ?>
            <div class="navigation">
                <?php posts_nav_link('''&laquo; Previous Page''Next Page &raquo;'); ?>
            </div>
        <?php ?>
    <?php 
    ?>
    now i want to add a image (previouspost.png) instead of &laquo; Previous Post and 2nd image (nextpost.png) instead of Next Post &raquo;

    Hope you will help me...
    ashutariyal Reviewed by ashutariyal on . [Req] How to Add Image instead of Text in PHP Hello Friend I just need your help to add image in my php file instead of text : Here is my file's php code <?php if ( is_single() ) { ?> <div class="navigation" style="border-top:0;"> <div class="alignleft"><?php previous_post_link('%link','&laquo; Previous Post'); ?></div> <div class="alignright"><?php next_post_link('%link','Next Post &raquo;'); ?></div> <div style="clear:both;"></div> </div> <?php } else { ?> <?php if ( Rating: 5
    403 Forbidden Error

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Just remove
    PHP Code: 
    <?php posts_nav_link('''&laquo; Previous Page''Next Page &raquo;'); ?>
    And just add the html code?

    Code: 
    <a href="linkhere"><img src="image.png" /></a>

    Defendos BETA3 Released! Thread - Official Website

  4.     
    #3
    Banned
    Website's:
    worldwidexs.com.au
    EDIT: Do what l0calh0st asked to do

  5.     
    #4
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Try this:
    PHP Code: 
    <?php if ( is_single() ) { ?>
        <div class="navigation" style="border-top:0;">
            <div class="alignleft"><?php previous_post_link('%link','<img src="previouspost.png" />'); ?></div>
            <div class="alignright"><?php next_post_link('%link','<img src="nextpost.png" />'); ?></div>
            <div style="clear:both;"></div>
        </div>
    <?php } else { ?>
        <?php if ( function_exists('wp_pagenavi') ) { ?>
            <?php wp_pagenavi(); ?>
        <?php } else { ?>
            <div class="navigation">
                <?php posts_nav_link('''<img src="previouspost.png" />''<img src="nextpost.png" />'); ?>
            </div>
        <?php ?>
    <?php 
    ?>
    I am not sure which cms is that! It may work assuming previous_post_link & next_post_link are functions which automatically binds next page link

  6.     
    #5
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    As I said it's just html

    Defendos BETA3 Released! Thread - Official Website

  7.     
    #6
    Member
    Thank you very much mate...
    403 Forbidden Error

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replace text with Image in Wordpress ?
    By Jayzzy in forum Webmaster Discussion
    Replies: 1
    Last Post: 13th Nov 2012, 08:04 PM
  2. Password image wrap around text ??/
    By sandip1110 in forum Graphics Area
    Replies: 11
    Last Post: 7th Apr 2012, 06:56 AM
  3. In line image and text...
    By r00ts in forum Wordpress
    Replies: 2
    Last Post: 24th Mar 2012, 02:24 PM
  4. Help changing text on the image
    By MediaStar in forum Graphics Area
    Replies: 3
    Last Post: 20th Jan 2012, 04:34 PM
  5. [Buying] Need To Convert Image To Text For 35$
    By orbofdarkness in forum Completed Transactions
    Replies: 47
    Last Post: 1st Mar 2011, 03:22 PM

Tags for this Thread

BE SOCIAL