• Resolved theankh

    (@theankh)


    Test Site Example

    I am using the Avada Theme and can’t seem to get help through support. They just tell me to go find a developer.

    I am trying to get the “page-title-container” to appear on the main index/HOME page. It appears correctly on every other page, but apparently it is designed to NOT show on the main index or HOME.

    I’m not adept enough at PHP to figure it out. Any help would be greatly appreciated..

    <?php if(of_get_option('page_title_bar', 'yes') == 'yes'): ?>
    	<?php if(((is_page() || is_single() || is_singular('avada_portfolio')) && get_post_meta($post->ID, 'pyre_page_title', true) == 'yes') && !is_front_page()): ?>
    	<div class="page-title-container">
    		<div class="page-title">
    			<h1><?php the_title(); ?></h1>
    			<?php kriesi_breadcrumb(); ?>
    		</div>
    	</div>
    	<?php endif; ?>
    	<?php if(is_home() && !is_front_page() && get_post_meta($slider_page_id, 'pyre_page_title', true) == 'yes'): ?>
    	<div class="page-title-container">
    		<div class="page-title">
    			<h1><?php echo of_get_option('blog_title', 'Blog'); ?></h1>
    			<?php kriesi_breadcrumb(); ?>
    		</div>
    	</div>
    	<?php endif; ?>
    	<?php if(is_search()): ?>
    	<div class="page-title-container">
    		<div class="page-title">
    			<h1><?php _e('Search results for:', 'Avada'); ?> <?php echo get_search_query(); ?></h1>
    		</div>
    	</div>
    	<?php endif; ?>
    	<?php if(is_archive()): ?>
    	<div class="page-title-container">
    		<div class="page-title">
    			<h1><?php single_cat_title(); ?></h1>
    			<?php kriesi_breadcrumb(); ?>
    		</div>
    	</div>
    	<?php endif; ?>
    	<?php endif; ?>
    	<div id="main" style="overflow:hidden !important;">
    		<div class="row">
Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks to be a simple matter of removing the && !is_front_page() from the code on line 2 of what you pasted in above and then adding in a an addition OR condition at the beginning of that same line…

    So if you make this line:
    <?php if(((is_page() || is_single() || is_singular('avada_portfolio')) && get_post_meta($post->ID, 'pyre_page_title', true) == 'yes') && !is_front_page()): ?>

    into this:

    <?php if(((is_page() || is_single() || is_singular('avada_portfolio') || is_front_page() ) && get_post_meta($post->ID, 'pyre_page_title', true) == 'yes')): ?>

    you should be golden! Let me know if that does the trick. I’ve never used the theme you are using before, but can almost guarantee that’s the problem preventing it from displaying for you.

    Thread Starter theankh

    (@theankh)

    Worked like a charm. I thought I had tried that, but apparently I got something wrong.

    I appreciate the help!

    Hi There ??

    I’m actually the developer for Avada and I’m not sure where you got that response about “find a developer” but it’s certainly not true.

    And if you register on our support forum, where we handle all support, you will quickly find a thread in our knowledge base that shows you how to put the page title bar on the home page.

    It’s as easy as that ??

    Hello friends i have a small doubt, We are using avada theme for our website can anyone tell where i have to go in order to edit the layersilder according to our needs!!

    very urgent.

    Thank You.

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial products here.
    Try https://themeforest.net/user/ThemeFusion

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avada Theme – PHP question’ is closed to new replies.