Tagged: x
-
AuthorPosts
-
July 29, 2016 at 6:52 am #1108695
heltaskeltaParticipantHi,
Is it possible to display a different featured image on the portfolio top level main page (the one with all the small thumbnails) to that of the image which is displayed at the top of the page which you click through to the individual portfolio post?
Thanks
July 29, 2016 at 6:58 am #1108697
heltaskeltaParticipantThis reply has been marked as private.July 29, 2016 at 10:17 am #1108924
DarshanaModeratorHi there,
Thanks for writing in! What’s your current stack using? This can be done by setting up a custom field, so that you can set another image that you want to display inside portfolio item. Please go through our ACF Pro guide on how to setup custom fields (https://community.theme.co/kb/integrated-plugins-acf-pro/).
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
I will demonstrate an example for Integrity stack and you can implement it on other stacks similarly.
Copy the file content-portfolio.php which is under “x/framework/views/integrity/” into your child theme’s respective location (“x-child/framework/views/integrity/”).
Then Edit the file using a text editor and locate the following line of code:
<?php x_portfolio_item_featured_content(); ?>Replace it with the following code:
<?php if ( x_is_portfolio_item() ) : ?> <?php //Add Your Own Custom Featured Image ?> <?php else : ?> <?php x_portfolio_item_featured_content(); ?> <?php endif; ?>Change the comment
//Add Your Own Custom Featured Imagewith your custom field name so that it will render your changed image.Hope that’s clear.
August 1, 2016 at 6:55 am #1111852
heltaskeltaParticipantThis reply has been marked as private.August 1, 2016 at 7:48 am #1111909
JoaoModeratorHi there,
The reason why everything went off key when upgrading is because you probably needed also to perform a Child Theme Update.
Please refer to this thread:
https://community.theme.co/forums/topic/child-theme-updates/
The ACF plugin is bundled and compatible togheter with the latest versions of X and in order to perform the required change you will need to update prior to all.
If you face any problems during the update let us know and we will help you.
Thanks
Joao
August 4, 2016 at 12:19 pm #1117567
heltaskeltaParticipantThis reply has been marked as private.August 4, 2016 at 6:07 pm #1117984
RadModeratorHi there,
Please add this CSS to Admin > Appearance > Customizer > Custom > CSS
.single-x-portfolio .p-meta span:nth-child(2), .tax-portfolio-tag .p-meta span:nth-child(2){ display: none; }Hope this helps.
August 8, 2016 at 8:24 am #1122080
heltaskeltaParticipantThis reply has been marked as private.August 8, 2016 at 9:49 am #1122181
ThaiModeratorHi There,
Please update the previous CSS a bit:
.single-x-portfolio .p-meta span:nth-child(2), .tax-portfolio-tag .p-meta span:nth-child(2), .tax-portfolio-category .p-meta span:nth-child(2){ display: none; }Hope it helps 🙂
August 9, 2016 at 6:58 am #1123559
heltaskeltaParticipantThis reply has been marked as private.August 9, 2016 at 8:24 am #1123659
ThaiModeratorHi There,
I could see the Case Studies title on the single portfolio page:
http://i.imgur.com/PxnN6ER.png
Can you please try again?
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1108695 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
