• Resolved leonardogsouza

    (@leonardogsouza)


    Hi! I have to launch my website tonight and still couldn’t figure it out everything. I think I just need three more things:

    1) Is it possible to remove the “Home Tagline” area and put a slider instead, showing my recent posts or “featured” posts?

    2) I don’t want the featured image to show also inside the post, just on the home page, is it possible? And also, I really don’t know why, but the thumbnails do not resize on the front page…

    3) Can I have multiples of three (with a bigger size) instead of four on the home page posts grid?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Dinev Dmitry

    (@dimadinev)

    Hi,

    1) If you want to not show the section of Home Tagline: go to Customizer, delete the image in the section of Home Tagline, delete the text in the Tagline Text.

    If you want to show a picture but no text, can do the trick by placing the Tagline in Text <h1></h1>

    If you want to place in the Home section Tagline slider or something, then use the plugin and place the shortcode (e.g. slider) in section Tagline Text

    2) If I understand correctly, this is not possible.
    > I really don’t know why, but the thumbnails do not resize on the front page…
    This question is not clear.

    3) No.

    There is a lot about this themes custom home page template that makes it hard to find in the code for customizing. WordPress is Opensource – and using WordPress requires that even theme designers stay in the heart of that and not try to make it impossible to edit a theme.

    First, About adding a slider to the homepage and resizing the home page post images – YES, IT CAN BE DONE!
    Both of these will be done in the PHP File named: content-home.php
    1. Slider:
    The code you will focus on for this will be

    <!-- Homepage Tagline -->
    
    <div id="home-tagline" style="background: <?php echo get_theme_mod( 'home_tagline_bgcolor', '#e8e09d' ); ?> url(<?php echo get_theme_mod( 'home_tagline_bgimg', get_template_directory_uri().'/img/tagline.jpg' ); ?>); background-position: 50% 50%; background-size:100%;">
    
    <?php $placement = get_theme_mod( 'home_tagline', '<h1>Home Tagline</h1>' ); if (!empty($placement)) : ?>
    <div class="tagline-txt">
    	<?php echo do_shortcode( get_theme_mod( 'home_tagline', '<h1>Home Tagline</h1>' ) ); ?>
    </div>
    <?php endif; ?>
    </div><!--#home-tagline-->

    If you know php – this is where your slider php will go.

    2. Post Images – on home page:
    Again, this will be done in the content-home.php.
    Open up this php file in Notepadd++ and look for line #79-81. You will see this:

    <div class="col"<?php if ( $count == 2 ) : echo 'style="float: right;"'; else : echo 'style="margin-left: 0;"'; endif; ?>>
    		<div class="post-thumb" style="background: #FFF url(<?php $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'oprum-medium' ); echo $thumbnail[0]; ?>) no-repeat; background-position: 50% 50%; background-size: 100%;">
    		</div>

    Just change the last line where it says
    ; background-size: 100%;">
    from 100% to 50% or whatever size you’d like.

    Now, for my question:
    Why is there not a way to edit the #home-txt, .entry-header p {} in the customizer? I have to go searching through php and files to get to this content? Are you going to add this to customizer in the future?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Home Tagline and grid’ is closed to new replies.