ivorpad
1
Hey guys I’m trying to display this, actually the text appear but is not wrapped with the divs. Any ideas?
<?php if($my_options['ivor_home_tagline_enable'] == 'true'){
$output .= '<div id="testimonials">'."\
";
$output .= '<h3>'."\
";
echo stripslashes($my_options['ivor_home_tagline']);
$output .= '<h3>'."\
";
$output .= '</div>'."\
";
} ?>
system
2
where are you echoing out $output?
ivorpad
4
My question is who can I wrap the below code with divs. (The div will appear only if the checkbox is enabled)
<?php if($my_options['ivor_home_tagline_enable'] == 'true'){
echo stripslashes($my_options['ivor_home_tagline']);
} ?>
Sorry if I’m not being specific my php isn’t that great.
@Mittineague Actually yes, output is defined
$output = '';
Cups
5
$output .= stripslashes($my_options['ivor_home_tagline']);
[edit]forgot to say, replace your echo line with that instead.
[/edit]
system
6
and my question was where are you echoing out $output?