Archived

This topic is now archived and is closed to further replies.

  • 0

Feature Box Height

Question

Posted · Report post

Hi, This is probably a dumb question but I can't find the answer in the documentation so I hope someone can help. I've got two separate pages that I want to have a feature on, but I want them to be different height. I've worked out how to change the height but it seems to be a universal control. Is there a setting that allows me to specify individual height for each feature I add? If not, is there some code I can add that will do the same job? Here's the link to the site: http://www.bigmouthmarketing.co.uk:/wp/ The home page feature (220px) is correct but I want the one on the portfolio page to be deeper (330px). I hope that makes sense. Any help will be, as always greatly appreciated. Thanks, Stu

Share this post


Link to post
Share on other sites

1 answer to this question

Posted · Report post

Okay maybe this is a roundabout way to do it but it works. You have to use a hook, which is created by putting custom code in the functions.php of your child theme.Paste the code directly below the line that says "// end function" and customize the CSS to whatever you need to. The CSS will only affect the page with the id 71, which I believe is the id of your portfolio page.

	add_action('pagelines_before_branding', 'change_the_size');
	
		function change_the_size(){
			if (is_page(71)){
				echo "<style>body #page div#feature-area{height:330px}</style>";
			};
	
		};
	

Share this post


Link to post
Share on other sites