Portfolio customization

Hello!

My site is http://www.kdpgestionpaysage.com

The “realisations” page is a portfolio. I would like to make the 2 following changes:

  • Change the “all” for something else…In French! (the word “tous”)
  • Change the bottom of the portfolio (the background where the name of the project is written in black) for a white background written in white

Thank you!

Nathalie :slight_smile:

Hi There,

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

add_filter('gettext', 'x_translate_text' , 20, 3);
function x_translate_text ( $translated_text, $text, $domain ) {
	$translation = array(
		'All' => 'Tous'
	);

	if( isset( $translation[$text] ) ) {
		return $translation[$text];
	}
	return $translated_text;
}

2.Please add this custom CSS under X > Theme Options > CSS:

.x-iso-container-portfolio .entry-wrap {
    background-color: #000;
}
.x-iso-container-portfolio .entry-featured {
    border: none;
}
h2.entry-title.entry-title-portfolio a {
    color: #fff;
}

Hope it helps :slight_smile:

Hi Thai,

Thanks for the (super) quick reply!

I don’t have a child theme installed; any way to change it otherwise?

I will try the CSS and get back to you!

Thank you soooo much! :grinning:

Hi There,

You should install the child theme for the future customizations:

Regards!

Hello, there!

I followed your instructions and installed the Child theme. Thank you for your advice!

Now that it’s done, I was wondering how I could change the size of the H1 titles on each of the portfolio pages and center it? Any way to do that?

Thank you!

Nathalie :blush:

Hey Nathalie,

To change the size of the h1, please add this code.

h1.entry-title.entry-title-portfolio {
    font-size: 210%;
    text-align: center;
}

Centering it is not possible unless you’re not going to use the portfolio extras like you’ll see in our Integrity Portfolio Item demo. If you decide to, please add this code

.x-portfolio .entry-info {
    width: 100%;
}

Hope that helps.

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