• Hello,
    I want to display next and previous post buttons in the middle of images sides.
    Something like this Click here for demo theme , here I am able to change images next and previous, I want to change the post in the same way and get rid of the big buttons beneath post. For my website this way will be a lot easier to navigate bethween posts.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @bancurisicitate,

    Inserting post navigation buttons on top of the featured image is a bit too big of a change for me to post detailed instructions on the support forums. In short, you’re going to have to create a child theme, copy over the singular.php file, add code outputting the post navigation links in the featured image area, and add CSS to style those links the way you want them (or match the markup to the gallery next/previous links so they inherit those styles).

    — Anders

    Hi, I am trying to create a child-theme but I doubt what should I copy in functions.php in order to include the style (what should be the handler):
    this is what I have and just doesn’t work

    add_action( 'wp_print_styles', 'fukasawa_load_style' );
    function my_theme_enqueue_styles() {
        $parenthandle = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
        $theme = wp_get_theme();
        wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
            array(),  // if the parent theme code has a dependency, copy it to here
            $theme->parent()->get('Version')
        );
        wp_enqueue_style( 'child-style', get_stylesheet_uri(),
            array( $parenthandle ),
            $theme->get('Version') // this only works if you have Version in the style header
        );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I change next and previous post buttons?’ is closed to new replies.