Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1080982
    michele
    Participant

    Hi, 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
    Michele

    #1080986
    michele
    Participant
    This reply has been marked as private.
    #1081020
    Rad
    Moderator

    Hi 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!

    #1081157
    michele
    Participant

    thank 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 🙂

    #1081170
    Thai
    Moderator

    Let us know how it goes!

    #1082088
    michele
    Participant

    I 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
    Michele

    #1082938
    Paul R
    Moderator

    Hi 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

    #1082976
    michele
    Participant

    Hi 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?
    Michele

    #1082980
    michele
    Participant
    This reply has been marked as private.
    #1083027
    michele
    Participant

    Hi, 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

    #1083282
    Joao
    Moderator

    Hi Michele,

    Thanks for letting us know

    Joao

  • <script> jQuery(function($){ $("#no-reply-1080982 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>