Skip Navigation

[Resolved] Very Weird problems with Avada

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by pedro.S 5 years, 7 months ago.

Author
Posts
#1227759

A SPECIAL NOTE:
This site is protected with htaccess, which means that before you access wp-admin you have to visit the site root of the site to insert the credentials and ONLY THEN you will be able to access wp-admin. The credentials are:

I am trying to:
Create a layout page, like i've done it several times, including in previous Avada themes without any problem.
If you visit the Portfolio page, you will see a Toolset View... pressing any project will lead you to the page with the problem.

Instead, I got:
Avada behaving very uncommon.

1 - I insert the code to show the post title for example, the markup is there in the html but it doesn't show the title in the frontend. But i can display a custom field.
2 - The main menu markup is there in the HTML but the text is not, it only shows <span class="menu-text"></span>
3 - The same thing happens with the secondary menu (which is on the top right side of the site)
3 - There is a widget on the footer that is missing

This only happens in the CPT layout. Views has no problems..
Deactivating all plugins except toolset doesn't solve the issue.
Updated Toolset, WordPress and Avada to the latest version.

Activated WP Debug and i see no error messages except one in the meta section:

Notice: Undefined index: projeto in /home/gw356uym/public_html/novosite/wp-content/themes/Avada/includes/lib/inc/functions.php on line 213

This is code inside the functions.php mentioned above. the line 213 is where you see line 10 below.

// Render rest of meta data.
			// Render categories.
			if ( $settings['post_meta_cats'] ) {
				$post_type = get_post_type();
				$taxonomies = array( 'avada_portfolio' => 'portfolio_category', 'avada_faq' => 'faq_category', 'product' => 'product_cat', 'tribe_events' => 'tribe_events' );
				ob_start();
				if ( 'post' === $post_type ) {
					the_category( ', ' );
				} elseif ( 'page' !== $post_type ) {
					the_terms( get_the_ID(), $taxonomies[ $post_type ], '', ', ' );
				}
				$categories = ob_get_clean();

				if ( $categories ) {
					/* translators: The categories list. */
					$metadata .= ( $settings['post_meta_tags'] ) ? sprintf( esc_html__( 'Categories: %s', 'Avada' ), $categories ) : $categories;
					$metadata .= '<span class="fusion-inline-sep">|</span>';
				}
			}
#1227763

Well...

It seems i've found the problem.
It was a snippet i had inserted to remove the title from the CPT:

[php]
add_filter( 'the_title', 'remove_single_custom_post_titles', 10, 2 );
function remove_single_custom_post_titles( $title ) {
if( is_singular( 'projeto' ) ):
return '';
else:
return $title;
endif;
}[php]

My issue is resolved now. Thank you!