Support

Home Forums Event Espresso Premium Page layout in EE4

Page layout in EE4

Posted: August 24, 2014 at 2:30 pm

Viewing 3 reply threads


utahhockey

August 24, 2014 at 2:30 pm

My previous topic was closed. So I am forced to create another as it isn’t resolved: Tony, this is for you:
The Function appears to only output the style text.

/*THEME STYLE*/
if ( !function_exists(‘tfuse_header_bg’) ):
function tfuse_header_bg()
{

if(is_category()){
$cat_ID = get_query_var(‘cat’);
$header_bg = tfuse_options(‘header_image’,”,$cat_ID);
$header_element = tfuse_options(‘header_element’,”,$cat_ID);
}elseif(is_tax()){
$term = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’));
$term_ID = $term->term_id;
$header_bg = tfuse_options(‘header_image’,”,$term_ID);
$header_element = tfuse_options(‘header_element’,”,$term_ID);
}else{
$header_bg = tfuse_page_options(‘header_image’);
$header_element = tfuse_page_options(‘header_element’);
}
$def_header_image = tfuse_options(‘def_header_background’);
$def_header_sel_background = tfuse_options(‘def_header_sel_background’);

if($header_element == ‘image’)
if($header_bg){
echo ‘style=”background-image:url(‘.$header_bg.’)”‘;
}elseif($def_header_sel_background){
echo ‘style=”background-image:url(‘.$def_header_sel_background.’)”‘;
}else{
echo ‘style=”background-image:url(‘.get_template_directory_uri().’/images/’.$def_header_image.’)”‘;
}
}
endif;


Lorenzo Orlando Caum

  • Support Staff

August 25, 2014 at 8:30 am

Hi,

I looked at the prior post and it seems like the issue is that the header image is missing on the Event Espresso pages.

Do you have an updated link available? I tried a couple and they were 404 (broken links).


Lorenzo


utahhockey

August 25, 2014 at 4:53 pm

We went live with the site. Current site is universityofutahhockey.com
Thanks Lorenzo!


Dean

August 26, 2014 at 2:01 am

Hi is the image meant to be this one? http://universityofutahhockey.com/wp-content/themes/sportedge-parent/images/header_nhl.jpg

If so the url for the image is currently pointing to the dev site instead of the live site.

Viewing 3 reply threads

The support post ‘Page layout in EE4’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso