Thanks so much Wes. Let’s see what I can do to edit that to get my desired outcome.
Sorry I can’t find that line anywhere in page_portfolio.php or functions.php for Optimal.
Hi Wes,
I wanted you to know that I figured out the part of the problem involving separating the parent and child style.css files.
Towards the top of the function.php I added:
/** Add a custom.css file to the child theme folder */
add_action( ‘wp_enqueue_scripts’, ‘enqueue_custom_stylesheet’ );
function enqueue_custom_stylesheet() {
wp_register_style( ‘custom-css’, get_stylesheet_directory_uri() . ‘/style_custom.css’ );
wp_enqueue_style( ‘custom-css’ );
}
I simply created style_custom.css in the child folder for all my css modifications. The style_custom.css file will be pulled in after the style.css file so my custom CSS code will overwrite any default CSS code. Will do the same to add a print.css file later.
I look forward to hearing from you on the main question of how to add the corresponding HTML for any new .portfolio-3 div classes to a new page_portfolio_3_col.php.
Have a great weekend man,
Corl
Hi Wes,
I was hoping to use both 4 and 3 column portfolio page templates.
My guess from your answer would be to copy the existing page_portfolio.php page template, rename it page_portfolio_3_col.php.
Give it a new title: // Template Name: Portfolio 3 Col
In functions.php add a new image size:
add_image_size( ‘portfolio-thumbnail-3’, 310, 200, TRUE );
What’s the best way to add my css to preserves it when you update the theme? I like WordPress’s arrangement of keeping the parent and child style.css separate.
Where would I add the corresponding HTML for a new #content .portfolio-3 and portfolio-thumbnail-3 classes I’d be creating?
Thanks so much,
Corl