Hallo,
ich probiere gerade diesen Slider shortcode:
<?php
echo do_shortcode('[smartslider3 slider=2]');
?>
in die test header.php einzufügen. Leider schaffe ich es nicht den Code an der richtigen Stelle zu setzen.
Wäre es möglich mir zu sagen bzw. zeigen wo ich den Code einsetzen muss anhand der beifegügten header.php
Danke im Voraus.
PHP
<?php
/**
* The Header for Customizr.
*
* Displays all of the <head> section and everything up till <div id="main-wrapper">
*
* @package Customizr
* @since Customizr 1.0
*/
if ( apply_filters( 'czr_ms', false ) ) {
//in core init => add_action( 'czr_ms_tmpl', array( $this , 'czr_fn_load_modern_template_with_no_model' ), 10 , 1 );
//function czr_fn_load_modern_template_with_no_model( $template = null ) {
// $template = $template ? $template : 'index';
// $this -> czr_fn_require_once( CZR_MAIN_TEMPLATES_PATH . $template . '.php' );
// }
do_action( 'czr_ms_tmpl', 'header' );
return;
}
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7 no-js" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8 no-js" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html class="no-js" <?php language_attributes(); ?>>
<!--<![endif]-->
<?php
//the '__before_body' hook is used by CZR_header_main::$instance->czr_fn_head_display()
do_action( '__before_body' );
?>
<body <?php body_class(); ?> <?php echo apply_filters('tc_body_attributes' , '') ?>>
<?php do_action( '__before_page_wrapper' ); ?>
<div id="tc-page-wrap" class="<?php echo implode( " ", apply_filters('tc_page_wrap_class', array() ) ) ?>">
<?php do_action( '__before_header' ); ?>
<header class="<?php echo implode( " ", apply_filters('tc_header_classes', array('tc-header' ,'clearfix', 'row-fluid') ) ) ?>" role="banner">
<?php
// The '__header' hook is used with the following callback functions (ordered by priorities) :
//CZR_header_main::$instance->tc_logo_title_display(), CZR_header_main::$instance->czr_fn_tagline_display(), CZR_header_main::$instance->czr_fn_navbar_display()
do_action( '__header' );
?>
</header>
<?php
//This hook is used for the slider : CZR_slider::$instance->czr_fn_slider_display()
do_action ( '__after_header' )
?>
Alles anzeigen
Edit maxe: Code Button