Customize portfolio single page

Hi,

In portfolio single page, I want to remove right side bar(Launch project title and social icon etc.) and want to add contact form shortcode.

How can I do that? Please help me!

Thanks

Hi There,

Thank you for writing in! While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

First, please setup a child theme

Then login to your server (via FTP or cPanel’s file manager) and navigate to this directory
/wp-content/themes/x/framework/views/{your stack}/

Copy the file content-portfolio.php and paste that to your child theme in the same directory path
/wp-content/themes/x-child/framework/views/{your stack}/

Open/edit the content-portfolio.php file, look for this block:

<div class="entry-extra">
      <?php x_portfolio_item_project_link(); ?>
      <?php x_portfolio_item_tags(); ?>
      <?php x_portfolio_item_social(); ?>
    </div>

That is the extra info block (right sidebar) of the portfolio item page. You can replace or add the content of it.

You can add your own shortcode in there by using the do_shortcode() function.

Hope it helps,
Cheers!

1 Like

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