• Resolved dierofly

    (@dierofly)


    Hello,

    I am using Skeleton theme for one project. Now I would like to use the same template for a different one. But it seems like something is wrong with the Extras areas.

    In my current project the extras area in functions.php looks like this:

    if ( !function_exists( 'skeleton_header_extras' ) ) {
    
    	function skeleton_header_extras() {
    		$header_extras = skeleton_options('header_extras');
    		if (a) {
    			$extras  = '<div class="header_extras">';
    			$extras .= $header_extras;
    			$extras .= "</div>";
    			echo apply_filters ('skeleton_child_header_extras', $extras);
    		}
    	}
    	add_action('skeleton_header','skeleton_header_extras', 3);
    
    }

    In the new project (for which I downloaded latest version of Skeleton theme) the same area in functions.php looks like this:

    if ( !function_exists( 'skeleton_header_extras' ) ) {
    
    	function skeleton_header_extras() {
    		$header_extras = skeleton_options('header_extras');
    		if ($header_extras) {
    			$extras = "<div class=\"header_extras\">";
    			$extras .= $header_extras;
    			$extras .= "</div>";
    			echo apply_filters ('skeleton_child_header_extras',$extras);
    		}
    	}
    	add_action('skeleton_header','skeleton_header_extras', 3);
    
    }

    The difference is in these 2 lines:

    if (a) {
    			$extras  = '<div class="header_extras">';
    if ($header_extras) {
    			$extras = "<div class=\"header_extras\">";

    The problem with the new project is that when I try to add code to Extras area like this <a id="test">test</a> the code is always automatically wrapped with quotation signs and looks like this <a id="\"mail\"">test</a> which causes that this content does not appears correctly.

    I was trying to solve this by editing mentioned part of the code, unfortunately I can not figure this out.

    I would appreciate any help.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error in Extras area?’ is closed to new replies.