Hi there,
I’m trying to add a link in all my blockquotes cites. I tried to use one of your tricks but it doesn’t work…
Here’s the code
1. Copy content-quote.php from \x\framework\views\{STACK}\ to your child theme (eg. \x-child\framework\views\{STACK}\ )
2. Edit your child theme’s content-quote.php and replace all instances of this code :
<cite class="entry-title-sub"><?php echo $cite; ?></cite>
with this:
<cite class="entry-title-sub"><?php echo '<a href="'.get_post_meta(get_the_ID(), 'cite_url', true).'" target="_blank">'.$cite.'</a>'; ?></cite>
3. Save and upload.
4. Now edit your posts that are formatted as quote and go to Screen Options from the very top of the page and enable Custom Fields.
5. At your current post, scroll down until you find Custom fields section.
6. Add new custom field with the name of cite_url and the value of your preferred url/link.
7. Save/publish your post.
I also changed the class “entry-title-sub” to “x-cite” but nothing changed. Where am I wrong?
I’ll attache a secure note with login and password, in case you need those.
Thanks in advance
Regards