• is it posible to put some pure text on home page and also showing the posts thumb as in demo?

    thx lot for advice

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi

    Do you mean this.Check here

    Thanks!!!

    Thread Starter fotodobias

    (@fotodobias)

    Hí exactly ?? yes i amean that how did you do it ? ??

    Hi fotodobias

    1. First you need to create Child theme
    2. Now you will find header.php file in main theme’s folder.
    3. Copy and paste that file in child theme folder.
    4. Now copy and paste below code as a whole in header.php file in child theme.

    <?php
    /**
     * The header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package Oblique
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) : ?>
    	<?php if ( get_theme_mod('site_favicon') ) : ?>
    		<link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'oblique' ); ?></a>
    
    	<?php $menu_text = get_theme_mod('menu_text'); ?>
    	<div class="sidebar-toggle">
    	<?php if (!$menu_text) : ?>
    		<i class="fa fa-bars"></i>
    	<?php else : ?>
    		<?php echo esc_html($menu_text); ?>
    	<?php endif; ?>
    	</div>
    
    	<div class="top-bar container">
    		<?php if ( has_nav_menu( 'social' ) ) : ?>
    			<nav class="social-navigation clearfix">
    				<?php wp_nav_menu( array( 'theme_location' => 'social', 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>', 'menu_class' => 'menu clearfix', 'fallback_cb' => false ) ); ?>
    			</nav>
    		<?php endif; ?>
    		<?php if ( get_theme_mod('search_toggle') ) : ?>
    		<div class="header-search">
    			<?php get_search_form(); ?>
    		</div>
    		<?php endif; ?>
    	</div>
    
    	<div class="svg-container nav-svg svg-block">
    		<?php oblique_svg_3(); ?>
    	</div>
    	<header id="masthead" class="site-header" role="banner">
    		<div class="overlay"></div>
    		<div class="container">
    			<div class="site-branding">
    	        <?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('name')); ?>" /></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 show-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 class="svg-container header-svg svg-block">
    			<?php oblique_svg_1(); ?>
    		</div>
    	</header><!-- #masthead -->
    			<div class="svg-container svg-block page-header-svg">
    				<?php oblique_svg_1(); ?>
    			</div>
    			<header class="page-header">
    			<h1 class="page-title">YOUR TEXT </h1>
    			<div class="taxonomy-description">your description</div>		
    
    			</header><!-- .page-header -->
    			<div class="svg-container svg-block page-header-svg">
    				<?php echo oblique_svg_3(); ?>
    			</div>
    	<div id="content" class="site-content">
    		<div class="container content-wrapper">

    5. Now you can edit YOUR TEXT and your description text as you wish.
    6. Now activate that child theme from Admin Panel Theme section.
    Note: Please customize files of child theme, so your changes will not overwrite on theme update.

    Best Regards!!!

    Thread Starter fotodobias

    (@fotodobias)

    thx lot working well ?? if you get time is it posible to put the text under posts ? ??

    anyway thx lot.

    Thread Starter fotodobias

    (@fotodobias)

    on nevermind its like that is bather and ok thx lot ??

    Hi fotodobias

    Do you want same text to be appear on each post or different text on different posts?

    Best Regards!!

    Thread Starter fotodobias

    (@fotodobias)

    but if you would mind have another wish

    i trying translate the button read more on showed posts but dont work me ?? tryed PO,MO,POT , try plugins as loco-translate and polygion and dont work neather ??

    thx for your advice if you dont mind ??

    Thread Starter fotodobias

    (@fotodobias)

    ok back to the text on front page it showing not just on the home page but alse avery where ?? (or anothers pages) is it posible to have this just on homepage ?

    Thread Starter fotodobias

    (@fotodobias)

    Do you want same text to be appear on each post or different text on different posts?
    Best Regards!!

    what are we talking abouth ? sory.

    Hi fotodobias

    I mean to say your site title is same everywhere as your each post title are different.
    So you want same text e.g: your-name to be appear under all post or different according to posts.

    Best Regards!!!

    Thread Starter fotodobias

    (@fotodobias)

    htx for yours advice ??

    I do not have problems with titles (i using some SEO plugin can manage easy)

    Thread Starter fotodobias

    (@fotodobias)

    But the code you give me, the text is all over whole site on avery page i have it. i need it just on homepage .

    Hi fotodobias

    Delete above code and copy and paste following code for text display on home page only in header.php file in child theme.

    <?php
    /**
     * The header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package Oblique
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) : ?>
    	<?php if ( get_theme_mod('site_favicon') ) : ?>
    		<link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'oblique' ); ?></a>
    
    	<?php $menu_text = get_theme_mod('menu_text'); ?>
    	<div class="sidebar-toggle">
    	<?php if (!$menu_text) : ?>
    		<i class="fa fa-bars"></i>
    	<?php else : ?>
    		<?php echo esc_html($menu_text); ?>
    	<?php endif; ?>
    	</div>
    
    	<div class="top-bar container">
    		<?php if ( has_nav_menu( 'social' ) ) : ?>
    			<nav class="social-navigation clearfix">
    				<?php wp_nav_menu( array( 'theme_location' => 'social', 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>', 'menu_class' => 'menu clearfix', 'fallback_cb' => false ) ); ?>
    			</nav>
    		<?php endif; ?>
    		<?php if ( get_theme_mod('search_toggle') ) : ?>
    		<div class="header-search">
    			<?php get_search_form(); ?>
    		</div>
    		<?php endif; ?>
    	</div>
    
    	<div class="svg-container nav-svg svg-block">
    		<?php oblique_svg_3(); ?>
    	</div>
    	<header id="masthead" class="site-header" role="banner">
    		<div class="overlay"></div>
    		<div class="container">
    			<div class="site-branding">
    	        <?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('name')); ?>" /></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 show-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 class="svg-container header-svg svg-block">
    			<?php oblique_svg_1(); ?>
    		</div>
    		</header><!-- #masthead -->
    		<?php
    if(is_home() || is_front_page()){?>
    <div class="svg-container svg-block page-header-svg">
    					<?php oblique_svg_1(); ?>
    				</div>
    				<header class="page-header">
    					<h1 class="page-title">YOUR TEXT </h1>
    					<div class="taxonomy-description">your description</div>		
    
    				</header><!-- .page-header -->
    				<div class="svg-container svg-block page-header-svg">
    					<?php echo oblique_svg_3(); ?>
    				</div>
    <?php
    }
    		?>
    
    	<div id="content" class="site-content">
    		<div class="container content-wrapper">

    Best Regards!!

    Thread Starter fotodobias

    (@fotodobias)

    thx lot thats it ??

    will you help me with translation of continuew reading also ? ??

    @wen-solutions
    How to display a page content instead of YOUR TEXT ?

    kind regards,
    mathijs

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘text on home page and yours show posts’ is closed to new replies.