Skip to content

excerpt shortcode

//custom function function create_shortcode_test() { echo the_excerpt(); } add_shortcode ( 'show_excerpt' , 'create_shortcode_test' ); Or you can just use the original function add_shortcode( 'output_post_excerpt', 'get_the_excerpt' );

Mehr Lesen

DKPDF Customizations

This allows to change filename, layout, pagination and other stuff for the DKPF plugin. //PDF CHANGES //change filename function custom_dkpdf_pdf_filename( $filename ) { $current_user = get_the_author_meta('display_name'); $filename = 'Telekanzlei - Checkliste - '.get_the_title(); return $filename; } add_filter( 'dkpdf_pdf_filename', 'custom_dkpdf_pdf_filename' );…

Mehr Lesen
you are enough text

Open Lightbox after form submission in Total Theme

//Trigger 1 #lightboxcontent https://total.wpexplorer.com/docs/adding-ilightbox-popups-inline/ //Trigger 2 /?success=confirmation https://total.wpexplorer.com/docs/snippets/trigger-lighbox-via-url/ //not needed if other lightbox elements present or do_shortcode below add_filter( 'wpex_load_ilightbox_globally', '__return_true' ); add_action( 'wp_footer', function() { //do_shortcode('[vcex_button onclick="popup" text_source="custom_text" onclick_lightbox_title="" onclick_lightbox_caption="" unique_id="confirmation" onclick_url="#lightboxcontent" onclick_lightbox_dims="450x330" visibility="hidden"]Lightbox[/vcex_button]'; ?> <a href="#lightboxcontent" id="confirmation" class="wpex-lightbox…

Mehr Lesen

Total Theme: Center Mobile Logo

Requires header style three I guess: /*CENTER LOGO MOBILE*/ @media only screen and (max-width: 1220px) { body.wpex-mobile-toggle-menu-icon_buttons #site-logo { text-align: center !important; margin: 0 auto !important; width: 250px; float: unset !important; } }

Mehr Lesen

Changing the page title in WordPress

//CHANGE POST TITLE function custom_modify_title( $title, $id = null ) { return 'CUSTOM '.$title; } add_filter( 'wp_title', 'custom_modify_title', 10, 2 ); add_filter( 'the_title', 'custom_modify_title', 10, 2 ); Change depending on post type //CHANGE POST TITLE add_filter('the_title','custom_modify_title2'); function custom_modify_title2($data){ global $post;…

Mehr Lesen
selective focus photography of program setup

Add JQuery toggle Script to footer in WordPress

Dies ist ein einfaches Beispiel dafür, wie man in WordPress ein JQuery Code in den Footer einbringt, um bspw. ein Toggle Skript auszulösen. Das kann sinnvoll sein, wenn man bestimmte Bereiche erst einblenden möchte, wenn der Besucher es wünscht. So…

Mehr Lesen
An den Anfang scrollen