• Resolved acheetahpurr

    (@acheetahpurr)


    How to make load images full height first ?

    I don’t want this white band under my image, you see i’m using box-shadow.

    Thank you

    Kind regards

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • You don’t need to make any changes to the image height. You can add the below to your themes functions.php file to apply the border to the image only:

    add_action( 'amp_post_template_css', 'xyz_amp_my_additional_css_styles' );
    function xyz_amp_my_additional_css_styles( $amp_template ) {
    	// only CSS here please...
    	?>
          .amp-wp-article-featured-image amp-img {
           box-shadow: 2px 2px 4px #888;
    }
    	<?php
    }

    You’ll find out more about adding CSS to the reader mode templates here.

    Let me know if that works for you.

    Thread Starter acheetahpurr

    (@acheetahpurr)

    Nop it doesn’t work, I added in functions.php AMP and function.php of my childtheme.

    Thread Starter acheetahpurr

    (@acheetahpurr)

    I want my post images load as on module (Home page).

    @acheetahpurr just to confirm: are you using the Newspaper theme on the site?

    If so, they provide their own AMP templates via their mobile theme: https://tagdiv.com/amp-newspaper-theme/

    It may be best to contact their support to modify the CSS of their AMP pages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make load images full height first ?’ is closed to new replies.