Ich habe mir folgendes JQuery-Plugin geholt und dachte eigentlich das es ein Wordpress-Plugin ist, mein Fehler.
Von bgWorks gibt es eine Anleitung "http://support.bqworks.com/entries/277295…er-in-WordPress" wie man es in Wordpress zum laufen bekommt.
Bei mir erzeugt dieses vorgehen einen page break. Ich bin mir relativ sicher, dass ich wohl etwas falsch mache. Leider kenne ich mich nur bedingt aus und habe den Support des Sliders angeschrieben.
Ich würde mich über zusätzlichen Support freuen, da ich es eigentlich selber lösen wollte.
Slider Source: http://codecanyon.net/item/accordion…ccordion/140404
Mein Theme: http://themeforest.net/item/salient-r…e-theme/4363266
Wordpress -> neuste Version
1. Anleitung: http://support.bqworks.com/entries/27766383-Setup
2. Anleitung: http://support.bqworks.com/entries/277295…er-in-WordPress
Ich kann mir vorstellen. dass dieses Thema noch mehr Leute interessant finden.
Meine erste Frage: Wieso bringt das mein ganzes Wordpress durcheinander?
Auszug aus dem Ende meiner funtion.php
// Open Graoh
function add_opengraph() { global $post; // Ensures we can use post variables outside the loop
// Start with some values that don't change. echo "<meta property='og:site_name' content='". get_bloginfo('name') ."'/>"; // Sets the site name to the one in your WordPress settings echo "<meta property='og:url' content='" . get_permalink() . "'/>"; // Gets the permalink to the post/page
if (is_singular()) { // If we are on a blog post/page echo "<meta property='og:title' content='" . get_the_title() . "'/>"; // Gets the page title echo "<meta property='og:type' content='article'/>"; // Sets the content type to be article. } elseif(is_front_page() or is_home()) { // If it is the front page or home page echo "<meta property='og:title' content='" . get_bloginfo("name") . "'/>"; // Get the site title echo "<meta property='og:type' content='website'/>"; // Sets the content type to be website. }
if(has_post_thumbnail( $post->ID )) { // If the post has a featured image. $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); echo "<meta property='og:image' content='" . esc_attr( $thumbnail[0] ) . "'/>"; // If it has a featured image, then display this for Facebook }
}
add_action( 'wp_head', 'add_opengraph', 5 );
//accordion
add_action('wp_enqueue_scripts', 'load_accordion_slider_scripts');add_action('wp_footer', 'instantiate_accordion_slider');
function load_accordion_slider_scripts() { wp_enqueue_style('accordion-slider-css', get_bloginfo('template_directory') . '/accordion-slider/css/accordion-slider.min.css'); wp_enqueue_script('jquery'); wp_enqueue_script('accordion-slider-js', get_bloginfo('template_directory') . '/accordion-slider/js/jquery.accordionSlider.min.js');}
function instantiate_accordion_slider() {?> <script> jQuery(document).ready(function($){ $('.accordion-slider').accordionSlider({ width:960, height:400 }); }); </script><?php}?>
Alles anzeigen
Zumindest kann ich ihn so mit dem div tag auf meiner Page aufrufen, jedoch spinnt dann fast alles. Wenn ich das php tag, wie in Anleitung 2 beschrieben, dran lasse geht garnix mehr. Was stimmt hier nicht?
Vielen Dank.