Changes to portfolio main page

Hi!

I’m trying to figure out how to make my portfolio page match the rest of the pages on my site with regards to adding an image below the header. I’ve searched through the forums and found out how to add text below the title but not an image.
Would you please help?

Thanks!

Hi,

To add a heading that is the same as in your other pages. Please do the following.

  1. Create heading for your portfolio in Global Blocks
  1. Add the code below in your child theme’s functions.php file
add_action( 'x_before_view_global__slider-below', 'add_my_portfolio_title', 10 );
function add_my_portfolio_title() {
    if(x_is_portfolio()) {
        echo do_shortcode('[cs_gb id=51]');
    }    
}

Change [cs_gb id=51] with your global block shortcode.

You can find it here

Hope that helps

1 Like

Awesome, thank you!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.