• Resolved muyf6d

    (@muyf6d)


    Hi!

    Is there a way of adding a ‘back’ button on an attachment page, that links back to the post that has the gallery on it?

    I hope that makes sense…

    Currently there’s only a ‘previous’ and ‘next image’ link at the bottom of the attachment, but no way of returning to the post without going through the blog page.

    Thanks!

    R

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author Ben Sibley

    (@bensibley)

    There may be a plugin that can do this, but otherwise it will require a child theme and writing bit of code.

    Thread Starter muyf6d

    (@muyf6d)

    Ok, I’ve had a search around, and installed a couple of plug ins but none of theme seem to be doing much, and when I look it up on the forums for those plug ins all the suggestions require me to edit something on the header php or the child theme, neither of which I really know how to do!

    Would you be able to walk me through what I’d need to do?

    Theme Author Ben Sibley

    (@bensibley)

    It would be too complicated to share all the steps here. I went ahead and made a child theme for you instead that can add the link.

    All you have to do is activate it on your site and a “return to post” link will be added after the image on the attachment pages like this: http://pics.competethemes.com/image/3q2C023o2C2i. This will work as long as the image is “attached” to a Post.

    Here are the steps for activating the child theme:

    1. Click here to download the child theme
    2. Visit your site’s dashboard
    3. Go to the Appearance menu
    4. Click on the “Add New” button at the top of the page
    5. Click on the “Upload Theme” button at the top of the page
    6. Click on the “Choose File” button
    7. Select the tracks-child.zip file you downloaded from the link above
    8. Click “Install Now”
    9. Once the page reloads, click the blue “activate” link

    If you’re using a custom menu, you will need to re-select its location from the Menus page. Besides that it should be good to go.

    Thread Starter muyf6d

    (@muyf6d)

    Ahh! This worked (I have the button) but ALL my custom settings have gone!

    Thanks though! I’ll just re-do the customisations. I just thought I’d let you know that it does that, in case anyone else asks of the same thing 🙂

    Thanks lots!

    R x

    Thread Starter muyf6d

    (@muyf6d)

    One other thing…

    Since I installed the child theme (don’t know if it’s related)… on each posts the ‘categories’ keeps appearing on the left side of the page, on top of the left-most gallery thumbnail (I used CSS code to adjust the padding on the white blog area). I used another CSS code from the snippets collection, to ‘keep post categories at the bottom’ but this doesn’t seem to work… ?

    Thanks again in advance!

    R xx

    Theme Author Ben Sibley

    (@bensibley)

    Sorry about that!

    Could you share a link to a post with the categories showing on the left? I’ll just need to check it out and then I can provide a fix.

    Thread Starter muyf6d

    (@muyf6d)

    Hi,

    Thanks! I’ve sorted it! It turns out I just copied and pasted the css code from the snippet collection incorrectly, I missed out a tag or something.

    Thanks!

    Theme Author Ben Sibley

    (@bensibley)

    Ah okay, glad it works now 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘'Back' from attachment page’ is closed to new replies.