Tagged: x
-
AuthorPosts
-
June 9, 2016 at 9:00 am #1034021
mpanesarParticipantHi X,
I want to add a page which shows only the top 10 post throughout the site and wanted some advice how I should approach/start?
I have created a new page but I wanted to know what files I should edit to get the above to work.
I know that a new function will need to be created but not sure where this should be added and what .php needs to be edited to reference the function.
Please note I am asking for guidance, I will do the customisation work, many thanks
June 9, 2016 at 11:37 am #1034285
JoaoModeratorHi There,
Have you considered using the recent posts element in Cornerstone ?
It allows up to 4 posts but you can use it multiple times and use the offset box to select from which posts it should start counting, this way you would be able to setup in a way that just last 10 posts would be shown.
Let us know your thoughts.
Thanks
Joao
June 9, 2016 at 4:33 pm #1034717
mpanesarParticipantHi,
thanks for the suggestion but not sure it would be customisable enough for what I would to achieve
June 9, 2016 at 11:18 pm #1035253
Rue NelModeratorHello There,
With your page built in Cornerstone, you can make use of the Recent Posts element to show 10 recent post items. You can have multiple recent posts elements since by default it will only display up to 4 items. You can make use of the offset option preset in the element.
On the other hand, you can also install Essential Grid by going to X Addons > Extensions. With this plugin, you can display up to 10 recent post items and select how these items being displayed on the page. The Essential Grid element is also available in Cornerstone when you have installed it. You can check more about this Essential grid plugin here: https://community.theme.co/kb/integrated-plugins-essential-grid/
If you want to check out how you can display items with Essential grid, here are some examples of the grid:
http://essential.themepunch.com/#examplesHope this helps.
June 10, 2016 at 5:22 am #1035653
mpanesarParticipantThis reply has been marked as private.June 10, 2016 at 1:20 pm #1036224
Nabeel AModeratorHi again,
Thanks for writing in! It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding. Take care!
June 12, 2016 at 11:17 am #1038317
mpanesarParticipantHi,
I understand its possible with custom development, I only require some guidance and will be able to do the customisation myself. My original question was for some indication what files, therefore I could investigate it myself.
Please note I am not asking XTheme support to do the custom development.
June 12, 2016 at 4:49 pm #1038603
mpanesarParticipantHi,
I am assuming that adding a condition to check page ID on the _index.php and referencing that to views?
would that seem like the right approach?
June 12, 2016 at 7:35 pm #1038708
RadModeratorHi there,
If you’re trying to customize the blog template, then yes, it’s _index.php but the condition should be is_home() since blog page has no ID. But if it’s a page, then it depends on your currently selected template (Eg. under Page Attributes) and that’s where you’ll add the condition by ID. They are wp-page.php, and templates named template-*-*.php
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1034021 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
