I'm using the portfolio plugin to display portfolio items on a page. I've tested numerous approaches and this is the only one that gives me 1: a title under the thumbnail and 2: a lightbox. I need to display "the_content" under the thumbnail title and I can only do so by editing the shortcode.php file in the portfolio plugin. Is there a way to do this in my child theme instead so I don't have to worry about future plugin updates overwriting my customizations? I've added an attachment so you can see what I'm referring to. The line of code I'm adding to shortcode.php is:
<!--CUSTOM CODE TO DISPLAY the_content ADDED BY CRAIG - has be be updated everytime this plugin is updated--> <div style="background:green;"><?php the_content(); ?></div>
As of now that is the easiest way to get the content there. Even though it's a long function, the entire "nectar_portfolio_processing" is overwritable via a child theme and can be copied into your child functions.php to keep the modification persistent through updates.
That worked!!! Thanks so much! Have you guys considered adding the ability to add the_content to portfolio elements? Also, love the lightbox feature in the portfolio element. It'd really come in handy with the post grid element as well. Thanks again!
I'm using the portfolio plugin to display portfolio items on a page. I've tested numerous approaches and this is the only one that gives me 1: a title under the thumbnail and 2: a lightbox. I need to display "the_content" under the thumbnail title and I can only do so by editing the shortcode.php file in the portfolio plugin. Is there a way to do this in my child theme instead so I don't have to worry about future plugin updates overwriting my customizations? I've added an attachment so you can see what I'm referring to. The line of code I'm adding to shortcode.php is:
<div class="work-meta">
<h4 class="title" style="background:yellow;"><?php the_title(); ?></h4>
<?php if(!empty($project_excerpt)) { echo '<p>'. wp_kses_post( $project_excerpt ) .'</p>'; } elseif(!empty($nectar_options['portfolio_date']) && $nectar_options['portfolio_date'] == 1) echo '<p>' . get_the_date() . '</p>'; ?>
<!--CUSTOM CODE TO DISPLAY the_content ADDED BY CRAIG - has be be updated everytime this plugin is updated-->
<div style="background:green;"><?php the_content(); ?></div>
</div>
Hey phillystyle123,
As of now that is the easiest way to get the content there. Even though it's a long function, the entire "nectar_portfolio_processing" is overwritable via a child theme and can be copied into your child functions.php to keep the modification persistent through updates.
That worked!!! Thanks so much! Have you guys considered adding the ability to add the_content to portfolio elements? Also, love the lightbox feature in the portfolio element. It'd really come in handy with the post grid element as well. Thanks again!