Home How do I style a WordPress PHP link?
Reply: 0

How do I style a WordPress PHP link?

user594 Published in March 23, 2018, 2:35 pm
<div class="past-page"><?php previous_posts_link( '&laquo; Previous Page' ); ?></div>

Hello! I'm having a bit of troubles trying to solve the styling of a pagination button. I tried styling the past-page div, but that made a white box show up when no link was there... which was not the result I wanted.

So, I'm wondering if I can somehow add styling in the php tag here? The style I want to add is

font-size: 10pt;
text-transform: uppercase;
font-weight: bold;
background: #fff;
padding: 10px;
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.415303 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO