Portfolio Page Theme X Icon 6

Hi, How can I add a section above the items in the portfolio pages ?

Hi There,

Please add the following code under functions.php file locates in your child theme:

add_action( 'x_before_view_global__portfolio', 'x_print_html' );
function x_print_html(){
	?>
	<div id="portfolio-section" class="x-section">
		<div class="x-container max width" style="margin: 0px auto;padding: 0px;">
			<div class="x-column x-sm cs-ta-center x-1-1" style="padding: 0px;">
				<img class="x-img x-img-none" style="max-width: 450px;width: 100%;margin: 0;" src="http://localhost/x/wp-content/uploads/2017/08/fitness-man.png">
			</div>
		</div>	
	</div>
	<?php
}

I didn’t work on a child theme, can I install it and it won’t erase my work on the theme ?

Hi @animalsprod,

Yes you can install child theme. Just do not update your parent theme because you will erase all the changes your made on the parent theme. After installing the child theme, transfer all your changes of your parent theme to the child theme so that you won’t be worried about your changes.

Hope it helps.

Let us know how it goes.

Thanks.

The code I added under the functions.php file doesn’t work ! It juste add a space between the header and the items but I can’t edit it.

I also want to add a text above each items of the portfolio (all my items are videos) but I can’t.

Hi There,

In that case, would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • Portfolio page
  • FTP credentials

All the best!