How to slide the subheading
-
Hi everyone! I’m using the Hueman theme that is really awesome one!
I’ve tried to make a sliding subheading (i mean the string you get by placing something in input in the Theme Option -> Blog -> Subheading form) but nothing appeared to work.
I modified in my child theme the alx_page_title() function in functions.php trying this code:if($subheading) { $title = $title.' <span><marquee behavior="scroll">'.$subheading.'</marquee></span>'; }
I added the marquee tag, but didn’t work.
I changed created 2 new functions:
function get_title_custom(){ $title = the_title(); echo $title; } function get_subtitle_marquee_custom(){ global $post; $subheading = get_post_meta($post->ID,'_subheading',true); $subheading = "<marquee behavior='scroll'>".$subheading."</marquee>"; if($subheading != '') echo $subheading; }
And i called them in the file header.php instead of the alx_page_title(), but nothing seemed to happen.
I so would like to get this feature and i wish you can help me ??
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How to slide the subheading’ is closed to new replies.