Archive Category column

Hi,
how can I change the number of columns in the “archive page”?
Because In the theme options you can change up to 3 columns and not more, I will want change to 4 columns.
thank’s

Hi There,

Please make sure you’ve already setup a child theme:

After that add this custom code under functions.php file locates in your child theme:

add_filter( 'x_option_x_archive_masonry_columns', 'archive_columns' );
function archive_columns(){
	return 4; //four columns
}

Hope it helps :slight_smile:

Perfect :slight_smile:

Glad to know!

Another question please,
how I can customize the title and hover of archive post? (size, padding, color etc.)
Now is very big and I don’t like it.

Hi there,

Please add this code in the Global CSS:

.category .entry-wrap {
    padding: 30px;
}

.category .entry-wrap .entry-title {
    font-size: 25px;
}

.category .entry-wrap .entry-title a:hover {
    color: #000;
}

.category .entry-wrap .entry-content {
    font-size: 15px;
}

Feel free to change the values in the code.

Here are some reference links related to the suggestions above:

Hope this helps.

Great! thank’s

You’re wlecome!

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