• My css button coding already add in style.css (called “button”) but how can i replace my next previous button into new css button on single post, this is my coding plz help

    [please mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    <div class="navigation">
    
    <div class="alignright"><p style="padding-right: 15px; padding-top:10px;"><?php previous_post_link('%link','<img src="http://www.humorcraze.com/wp-content/uploads/2012/12/Next1.png" alt="" title="Next" width="117" height="53" class="alignright size-full wp-image-7" />'); ?></p></div>
    <div class="alignleft"><p style="padding-left: 15px; padding-top:10px;"><?php next_post_link('%link','<img class=" wp-image-8 alignleft" title="Prev" src="http://www.humorcraze.com/wp-content/uploads/2012/12/Prev1.png" alt="" width="117" height="53" />'); ?></p></div></div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • You probably need to rename the button styling to something like:

    .navigation a { yourstyles }
    .navigation a:hover { yourhoverstyles }

    and so on.
    Then change
    previous_post_link('%link','<img src="http://www.humorcraze.com/wp-content/uploads/2012/12/Next1.png" alt="" title="Next" width="117" height="53" class="alignright size-full wp-image-7" />');
    to
    previous_post_link('%link','Link text to display');
    same for next_post_link.

    Thread Starter irfankhani

    (@irfankhani)

    if you don’t mind plz tell me in deatil

    Can you posts the css styles you want to use for styling the links/buttons? I can’t help you with any details if I can’t see those styles.

    You can find information about previous post link and next post link in the codex. You can find a lot of css examples over at w3schools.

    Please see this before posting any code here:
    http://codex.wordpress.org/Forum_Welcome#Posting_Code – use the pastebin if it’s more than about 20 lines of code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘i want next post link on css button plzzz help ?’ is closed to new replies.