• Resolved LeonFletcher

    (@leonfletcher)


    Hello,

    I was just wondering if anyone knows if it is possible to make the featured image appear on the actual article page at all? It’s on the archive but doesn’t appear on the actual article page.

    Also, does anyone know how I can add a hyperlink to the head image of the site at all, I’ve looked in the code for the theme but I’m a bit too scared to touch it haha

    Thanks in advance
    Leon

    here’s a link if anyone needs it – https://www.nintybuzz.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Leon,
    The First thing you need to do is create a child theme (so if the theme gets updated you won’t loose your changes). To do this:

    1. Create a folder in your themes directory called “stargazer-child”
    2. Create a CSS file called “style.css” with the following code pasted in: https://pastebin.com/YdrF5U6z
    3. To Change the blog page, copy and paste content.php from the stargazer theme to your child theme (you can find it in the ‘content’ folder. You need to create a folder called ‘content’ in your child theme and paste it into there).
    4. Then paste the following into line 7 of content.php
    <?php get_the_image( array( 'size' => 'stargazer-full', 'order' => array( 'featured', 'attachment' ) ) ); ?> so that it looks like this:
    https://pastebin.com/v9Qkcpid
    5. if you want to move the header image to somewhere else e.g. after the title, paste the same code after the <h1> tag.

    To make the image clickable
    1. Copy the header.php from the stargazer theme into your child theme.
    2. On line 37 highlight the code that’s already there and overwrite it with this code:
    https://pastebin.com/pmkSqLim
    so that content.php looks like this:
    https://pastebin.com/0JSDaYhk

    Thread Starter LeonFletcher

    (@leonfletcher)

    Thank you so much, it’s working perfectly now :3

    Thread Starter LeonFletcher

    (@leonfletcher)

    Edit – oops, wrong thread -_-

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured image on article page?’ is closed to new replies.