Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #759360

    Hi I put this background image on my blog page (it’s the only page that uses it)

    I only wanted a single image behind but this one has tiled.

    Can you let me know how to get it as a single image?

    Many thanks

    Jenny

    #759387

    Hey JennyGr,
    I’m assuming that you manually added the background image code, if so replace “rgb(245, 245, 245);” with:

     no-repeat #868173;

    I also assumed you wanted the same background color throughout the site “#868173”, the rgb color was very light.

    Another way is to try this code in the General Styling > Quick CSS field:

    .html_entry_id_3590  {
    background: url(https://test12.tickboxmarketing.co.uk/wp-content/uploads/2016/10/backgroundsmallerfile.jpg) no-repeat #868173 !important;
    }

    Best regards,
    Mike

    #767107

    Hi Mike I added that background image just my blog page in my functions.php. I’d now like to delete it and go back to the main background image as the rest of the site. I’m not sure which part of the code on functions.php I need to delete. I have included all the code below. Can you tell me which bits of code I need to delete?

    Many thanks

    Jenny

    #767112

    Hi,
    OK, I did it for you, it was this code:

    
    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		var blog = $('body').hasClass('blog');
    		if(!blog) return;
    		$('html').css({
    			'background' : 'url(/wp-content/uploads/2016/10/backgroundsmallerfile.jpg) #F5F5F5'
    		});
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Mike

    #767115

    Thanks Mike that’s great

    #767117

    Hi,
    Your welcome and Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Blog background image’ is closed to new replies.