Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Setting up Linked List Plugin template files for a theme WordPress

  • SOLVED

[[LINK href="http://lessmade.com/themes/min/"]]theme demo →[[/LINK]]

[[LINK href="http://www.ledesma.co"]]my site → [[/LINK]]

[[LINK href="https://www.dropbox.com/s/smdn0beew9ti0ns/alliswell-min-theme-c53cba0.zip"]]theme files to download →[[/LINK]]

[[LINK href="https://www.dropbox.com/s/28l6n9n3ril9f1o/linked_list.zip"]]plugin files to download →[[/LINK]]

hello above are all the pertinent links to download the theme files and plugin

What I want is for the index.php and single.php file to get updated so I can use with the plugin. I already have it working but my code is a little off because the post tile a link is coming out purple despite the css not being touched

Here's my code right now on the index.php as you see, it links out and that's fine but the color is not the #878787; and no hover.

<?php if (is_linked_list()): ?>
<h1><a href="<?php the_linked_list_link() ?>"> <?php the_title(); ?> &nbsp;→</a></h1>
<?php else: ?> <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php endif; ?>


so what i need back are 2 files modified: index.php and single.php


thanks,
JL

Answers (1)

2014-07-31

Navjot Singh answers:

Change h1 in the above code with h2 like this

<?php if (is_linked_list()): ?>
<h2><a href="<?php the_linked_list_link() ?>"> <?php the_title(); ?> &nbsp;→</a></h2>
<?php else: ?> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>


Post titles use h2 tag. Page title uses h1. And your theme styles h2 tags appropriately. h1 tag color is the default one which your browser shows.


Jorge Ledesma comments:

easy enough it worked