This topic has 12 replies, 2 voices, and was last updated 5 years by Radu.

  • Author
  • #212695
     Intertruck
    Participant

    Hello! Is it possible to have a BackButton on every single post at the top of the page or under the like button? The button should link to the blog page.

    #212706
     Radu
    Moderator

    Hi,

    Provide credentials to see how the single page looks.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #212710
     Intertruck
    Participant

    As a attachment

    Attachments:
    You must be logged in to view attached files.
    #212852
     Radu
    Moderator

    Hi,

    Here’s the file where you can add a button

    code : https://pastebin.com/raw/WRNgXk1F

    The code will be pasted in child theme in same location : wp-content/themes/buddyapp-child/page-parts/page-title.php

    Create the folders that missing and also the files in child theme and then paste that code

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #212859
     Intertruck
    Participant
    This reply has been set as private.
    #212920
     Intertruck
    Participant
    This reply has been set as private.
    #212973
     Radu
    Moderator

    Hi,

    I see it looks ok, try to remove the ‘<-' from <- Back leave only Back word maybe it interfere in some way. Make sure to have child theme activated also at this moment i cannot see the file added in child theme. Empty caches Cheers R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213005
     Intertruck
    Participant
    This reply has been set as private.
    #213010
     Radu
    Moderator

    Hi,

    You had forgot to add .php to the file, nto sure how

    Now the button it’s there

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213014
     Intertruck
    Participant
    This reply has been set as private.
    #213048
     Radu
    Moderator

    Hi,

    Wrap the a href link into a if else for the posts use only is_single(‘post’)

    Similar to the screenshot

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213443
     Intertruck
    Participant
    This reply has been set as private.
    #213463
     Radu
    Moderator

    Hi,

    You just add that before… and after exactly like in screenshot

    try with this instead

    if ( is_single() ) {
    ?>
    Back

    }

    For such as custom code help you will have to hire a developer to can help you to achieve your custom needs.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?