Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26784
    sabine
    Member

    The image shown in an attachment page are linked to another picture. How can I unlink images? I understand that I need to make a child theme and then edit the image.php. But what needs to be edited exactly?

    For example: http://www.de100morgen.nl/?attachment_id=456

    #26799
    Sakin
    Keymaster

    @sabine: Search for the following code in image.php

    <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
    $attachment_size = apply_filters( 'catchbox_attachment_size', 848 );
    echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
    ?></a>

    and replace it with

    <?php
    $attachment_size = apply_filters( 'catchbox_attachment_size', 848 );
    echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
    ?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Unlinking images in attachment pages’ is closed to new replies.