WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Avada Theme - PHP question (6 posts)

  1. theankh
    Member
    Posted 1 year ago #

    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">
  2. datdesignguy
    Member
    Posted 1 year ago #

    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.

  3. theankh
    Member
    Posted 1 year ago #

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

    I appreciate the help!

  4. lbeck
    Member
    Posted 1 year ago #

    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 ;)

  5. uppalapati41
    Member
    Posted 11 months ago #

    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.

  6. esmi
    Forum Moderator
    Posted 11 months ago #

    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 http://themeforest.net/user/ThemeFusion

Topic Closed

This topic has been closed to new replies.

About this Topic