Support » Fixing WordPress » Remove Previous next from attachment page

  • How can I remove ‘previous next” from attachment page. I have used but it still appears on a mobile phone ‘

    .nav-previous, .previous-image {
        display: none;
    
    }
    
    .nav-next, .next-image {
        display: none;
    
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Matt Knowles

    (@aestheticdesign)

    Your site probably is using a media query that targets smaller screens and overrides that section of CSS. You need to make the same change in that area of CSS. It may be somewhere else in that same file, or it could be a separate mobile CSS file.

    Without seeing your site or knowing what theme and plugins you have installed it’s hard to give you more exact advice than that.

    Thanks for the comment Its 2012 theme

    Matt Knowles

    (@aestheticdesign)

    I’m not too familiar with the 2012 theme. Try the forum for that theme for specific questions related to that theme.

    You would want to set it up as a child theme if you haven’t already.

    https://wordpress.org/support/theme/twentytwelve

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Previous next from attachment page’ is closed to new replies.