Tagged: x
-
AuthorPosts
-
July 11, 2016 at 3:09 am #1080982
micheleParticipantHi, I wondered if there was a way to expand what is seen on the portfolio items when they are viewed on a page. As it stands just now, the portfolio item has a pic and a title and the facebook, email links at the bottom, but what I wanted to do was to add some text under the title, including a phone number, address etc. I have an image of roughly what I would like to be able to do.
Would love any feedback on this,
many thanks
MicheleJuly 11, 2016 at 3:11 am #1080986
micheleParticipantThis reply has been marked as private.July 11, 2016 at 3:34 am #1081020
RadModeratorHi Michele,
Thanks for writing in.
That’s, of course, is possible.
1. Copy this file \wp-content\themes\x\framework\views\integrity\content-portfolio.php to your child theme (eg. \wp-content\themes\x-child\framework\views\integrity\content-portfolio.php)
2. Edit your child theme’s content-portfolio.php and add your custom content between these lines.
<div class="entry-extra"> ... </div>3. You may also add custom fields to your portfolio ( go to Screen Options on the very top of your portfolio while editing it, and toggle on the Custom Field, then add your custom field with name and value ).
Example, let’s say you added portfolio_phone as custom field name, then +89238293823 as custom field value. hence you can simply call it like this,
<div class="entry-extra"> <?php echo get_post_meta( get_the_ID(), 'portfolio_phone', true ); ?> <?php echo get_post_meta( get_the_ID(), 'another_awesome_custom_field_name_and_i_can_name_it_with_anything', true ); ?> <?php x_portfolio_item_tags(); ?> <?php x_portfolio_item_project_link(); ?> <?php x_portfolio_item_social(); ?> </div>It will then display the value of portfolio_phone that you added. You can do this on all your portfolio items, as long as you’re adding the same name.
4. Save and upload.
Cheers!
July 11, 2016 at 5:47 am #1081157
micheleParticipantthank you – I will give it a go and see if I can get it to work – many thanks Rad for your help. X theme support has been tremendous!
Michele 🙂July 11, 2016 at 5:58 am #1081170
ThaiModeratorLet us know how it goes!
July 11, 2016 at 3:40 pm #1082088
micheleParticipantI posted this question again as I feared it had been overlooked as on a thread as I hadnt heard back for 13 hours – hope this is ok.
Sorry for any inconvenience caused
MicheleJuly 12, 2016 at 6:26 am #1082938
Paul RModeratorHi Michele,
Your contents are password protected.
http://screencast.com/t/qztmNESKl5
Can you provide us the password and also your ftp login details so we can take a closer look.
Thanks
July 12, 2016 at 7:08 am #1082976
micheleParticipantHi Paul
My log in details are further up this thread – yes, my business pages are password protected, but I do not want the changes on the portfolio pages but on the display of portfolio items on say my coffee shop pages or restaurant pages. Just now they have only the titles showing and then the social sharing buttons and image, but I wanted to add address, phone numbers and a wee blurb – I don’t use filezilla for file changes, and just change them on my go daddy cpanel – do you want those log in details so you can see the files?
MicheleJuly 12, 2016 at 7:09 am #1082980
micheleParticipantThis reply has been marked as private.July 12, 2016 at 7:55 am #1083027
micheleParticipantHi, it is ok – I was reading through the forum and found out about the excerpt field, so have used that instead, thank you for your patience, Michele
July 12, 2016 at 10:49 am #1083282
JoaoModeratorHi Michele,
Thanks for letting us know
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1080982 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
