Various bits of PHP / HTML to customize this theme. Add PHP to /custom/custom_functions.php unless otherwise noted.


1. Keep all photo grid items on all device screen sizes

The photo grid on the front page may cut out some items on smaller screens in order to display this area nicer. If you don't want this you can add this to /custom/custom_functions.php

add_action('genesis_after', 'custom_script_options', 999);
function custom_script_options() {
    if (themedy_get_option('grid') != 'remove') { ?>
        <script type="text/javascript">
            jQuery(window).on("resize", function () {
                var $width = jQuery( window ).width();
                jQuery( ".grid-items" ).height($width / 2.309);
                jQuery( ".grid-items" ).addClass('sized');
                jQuery( ".grid-items" ).removeClass('alt-layout-1');
                jQuery( ".grid-items" ).removeClass('alt-layout-2');
<?php }

The problem with this solution is the text overlays of an image don't always fit. So you can also add this to your custom css to remove them on smaller screens:

@media only screen and (max-width: 800px) {
    .thumb-overlay h5 { display: none !important; }

2. Remove single gallery post meta box

add_action('genesis_after_loop', 'custom_remove_post_info');

function custom_remove_post_info() {
    remove_action('genesis_after_content', 'themedy_gallery_post_info');

3. Remove Read More / Comment bubble

remove_action('genesis_entry_footer', 'themedy_post_footer' );

4. Remove PopUp Script (Magnific Popup JS)

function themedy_dequeue_script() {
add_action( 'wp_print_scripts', 'themedy_dequeue_script', 100 );

// Start and Add Script Options
remove_action('genesis_after', 'themedy_script_options');
add_action('genesis_after', 'themedy_script_options_custom');
function themedy_script_options_custom() {
    if (themedy_get_option('slider')) { ?>
        <script type="text/javascript">
            jQuery(window).load(function() {
                jQuery('.homepage_template .flexslider').flexslider({
                    animation: "<?php echo themedy_option('slider_effect'); ?>",
                    slideshowSpeed: <?php echo themedy_option('slider_pause'); ?>,
                    animationSpeed: <?php echo themedy_option('slider_speed'); ?>,
                    slideshow: true,
                    <?php if (themedy_get_option('slider_effect') == 'slide') echo 'touch: false';?>
    <?php }