Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #865455

    Hello Support,
    I try to modify the portfolio grid single item output of the so called “AJAX Portfolio” the file I try to modify is:
    config-tamplatebuilder/avia-shortcodes/portfolio.php

    1 Question/Problem:
    I want to show custom field content under the Image that shows to the left side of the content container. My client always has the same image size and always only 1 image so the space under this image is just blank and I want to show some additional data there.
    I Installed an addon for the custom fields and I successfully included the custom fields output in the portolio.php file where I want it to show.

    What is not working: The custom field value is translatable (WPML) but for the field title I need to put translatable strings in the php file but they don’t show in front-end, the values show fine.

    This is what I have in the portfolio.php:

    $output .= _e('Certification Prerequisites', "dive-data") .$divedata1. '</br>';
    $output .= _e('Open Water Dives', 'dive-data') .$divedata2. '</br>';

    I also tried:

    $output .= __('Certification Prerequisites', "dive-data") .$divedata1. '</br>';
    $output .= __('Open Water Dives', 'dive-data') .$divedata2. '</br>';

    The $divedata1-8 show fine but the translatable strings do not show at all. In WPML String translation the strings are recognized correctly.

    Question N°2:
    Why is this file in question (portfolio.php) not recognized when I place it in my child theme folder (same folder structure as in ENOLD theme)?

    Thanks
    Gregor

    #865463

    Hello, little update:

    I found the solution for problem #1
    Now I only would like to know why this portfolio.php file is not child-themable?

    Thanks,
    Gregor

    #865473

    Hi,

    You can do the following to overwrite portfolio.php with a version on your child theme:

    Best regards,
    Jordan Shannon

    #865492

    Thanks so much Jordan, fantastic news!!

    Regards,
    Gregor

    #865630

    Hi Gregor,

    Great, glad we could help. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.