• Resolved gogabby

    (@gogabby)


    How can I indent paragraphs in my posts when I publish them?

    And also, how can I show only my logo and site description, and not the “site title”? But I still want a place to type the site title so that my blog displays correctly when I post links of it to, say, facebook. I just don’t want it to be visible on my website.

    here is what the code for it is in my header.php childtheme.

    <?php if ( get_theme_mod('site_logo') && get_theme_mod('logo_style', 'hide-title') == 'hide-title' ) : //Show only logo ?>
    					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr(get_bloginfo('name')); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php echo esc_attr(get_bloginfo('')); ?>" /></a>
    
    			<?php elseif ( get_theme_mod('logo_style', 'hide-title') == 'show-title' ) : //Show logo, site-title, site-description ?>
    					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr(get_bloginfo('name')); ?>"><img class="site-logo hide-title" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" /></a>
    					<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    					<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>	    
    
    		        <?php else : //Show only site title and description ?>
    					<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    					<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    		        <?php endif; ?>
    				</div><!-- .site-branding -->
    			</div>
    		</div>

    Thanks!

Viewing 1 replies (of 1 total)
  • Hey there,

    Regarding auto indentation the simplest way to achieve this without too much custom coding which I am afraid we cannot provide support for, is to do some of your own indentation by switching to the “text” tab of your editor and adding:

    &nbsp; &nbsp; before every paragraph. Please keep in mind that when you switch back to the “visual” tab of the editor this change might be gone. So you would have to save the post while it’s on the “text” tab.

    To achieve what you want with the site title then you could add the following to your child theme’s style.css:

    .site-title{
    display: none;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Indenting in Posts, and hiding site title’ is closed to new replies.