I want to change background image of my wordpress site on particular post type

Question

let say my post slug is /happypost

This is code of page.php from theme editor

<body <?php body_class(); ?>>
<?php do_action('flatsome_before_page' ); ?>
<?php do_action('flatsome_after_header'); ?>
<div id="wrapper">
    
    
    <div id="main" class="<?php flatsome_main_classes();  ?>">
            
    
    <?php while ( have_posts() ) : the_post(); ?>
        <?php the_content(); ?>
    <?php endwhile; // end of the loop. ?>
        
    

    </div><!-- #main -->
    <footer id="footer" class="footer-wrapper">

    <?php do_action('flatsome_footer'); ?>

</footer><!-- .footer-wrapper -->
</div><!-- #wrapper -->
<?php do_action( 'flatsome_after_page' ); ?>

<?php wp_footer(); ?>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/main.js"></script>
</body>
0
Coolpinkzz 1 month 0 Answers 4 views 0

Leave an answer