NiceThemesDisplay more than 4 services on the home page. – NiceThemes http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/feed/ Wed, 23 Apr 2025 14:44:05 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7218 <![CDATA[Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7218 Tue, 12 Jul 2016 12:42:17 +0000 brianmoes Hi,

In a previous version of the theme I was able to show more than 4 services on the home page by doing the following:

edit the file template-home.php and modify the limit in the services query to change that. Where it says ‘posts_per_page’ => 4, change the number to 8.

Since updating to 1.1.6 this is no longer working. Can you give me some advice on how to get this working please.

Thanks

Brian

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7222 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7222 Tue, 12 Jul 2016 14:02:49 +0000 Juanfra Aldasoro Hello Brian,

Thank you for writing, I hope you are doing well.

We highly recommend you to use child themes when customizing a theme.

In the recent versions we have added a filter, so the number of services on the home page can be changed without touching the template.

You can find the code to do that here: https://gist.github.com/juanfra/c4dd6ee3aca27231cf53

Best,
Juan.

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7226 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7226 Wed, 13 Jul 2016 11:43:26 +0000 brianmoes Hi Juan,

Thanks very much for this. I have added it to the child theme functions.php file and it is working well. In the previous theme it would goto a new line once 4 columns had been used. I notice in this new version of the theme it is listing all the services on a single row. I there a way to get it to go to a new line after 4 rather than just listing all service in the same row.

i.e. http://www.growonchildrensot.com.au/growonchildrensotcom/new/

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7230 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7230 Wed, 13 Jul 2016 14:09:24 +0000 Juanfra Aldasoro Hi Brian,

Thank you for the follow up.

Well, the amount of columns per row is given via CSS. Try to add the following line of CSS in your custom css file, or in the stylesheet of you child theme:

.home-service ul { display: block; }

Best,
Juan.

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7267 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7267 Wed, 27 Jul 2016 04:46:14 +0000 brianmoes Hi Juan,

Thanks for the suggestion. I have added this one in and it does not seem to have made any difference.
Did you have any other suggestions?

Thanks

Brian

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7268 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7268 Wed, 27 Jul 2016 05:08:05 +0000 brianmoes All sorted now Juan. Thanks for your help.

]]>
http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7269 <![CDATA[Reply To: Display more than 4 services on the home page.]]> http://nicethemeswp.com/forums/topic/display-more-than-4-services-on-the-home-page/#post-7269 Wed, 27 Jul 2016 13:32:29 +0000 Juanfra Aldasoro Hi Brian.

Thank you for the follow up. I´m happy it is all sorted now.

Have a nice day,
Juan.

]]>