Hi there,
1. Bypass the forced formatting of the homepage and display single page format on the static front page (image to the left, content to the right).
You can bypass the formatting of the home page by firstly copying the parent theme’s header.php file to your child theme.
Locate the following code in the file:
<?php if ( is_home() || is_front_page() || ( is_single() && 'image' == get_post_format() ) ) : ?>
<div class="featured-content">
<?php get_template_part( 'template-parts/loop', 'banner' ); ?>
</div>
<?php endif; ?>
That code adds a featured image to the top of your home page and to any posts that have the “image” post format assigned to it. We need to remove is_home() || is_front_page() || in order to stop it from adding the featured image to the top of your home page:
<?php if ( ( is_single() && 'image' == get_post_format() ) ) : ?>
<div class="featured-content">
<?php get_template_part( 'template-parts/loop', 'banner' ); ?>
</div>
<?php endif; ?>
Once we’ve removed the featured image from the top of the home page, we’ll also need to remove the home class from the body of your front page. This is because Dyad uses that class in its style.css file to style the front page differently to single pages.
The theme uses WordPress’ built in body_class function in order to automatically add the home class to the body of your home page. I looked up that function in the function reference to help me put together the following function to remove home:
<?php
function remove_class ( $classes ){
// search the array for the home class
$unset_key = array_search('home', $classes);
if ( false !== $unset_key ) {
// unsets the class if the key exists
unset( $classes[$unset_key] );
}
// return the $classes array
return $classes;
}
add_filter( 'body_class', 'remove_home_class', 10, 2 );
?>
Add the above function to your child theme’s function.php file.
2. Get rid of the little yellow icon at the top of all the text. Or change it to something relevant to my content and color scheme.
You can hide that little yellow icon by adding the following custom CSS to your child theme’s style.css file:
.is-singular .entry-inner:after, .error404 .entry-inner:after, .page-template-eventbrite-index .page-header:after, .single-event .entry-header:after {
background: none;
}
It’s also possible to further customise it using some CSS, if you let me know some specifics of how you’d like it to look then I can help guide you in the right direction.
3. Get rid of the shading that would go behind the page title and over the image on a single page format. Even when I leave the title blank, there’s an awkward gray overlay left behind.
That shading can again be hidden with some custom CSS:
.has-post-thumbnail.is-singular:not(.home):not(.single-format-image):not(.page-template-eventbrite-index) .entry-header {
background: none;
border-top: none;
}
Hope that’s helpful! Let us know if extra questions come up.