#Table of contents
Recommended ressources : https://developer.wordpress.com/
REST API Loop Menus Search Securize WP
beans_add_attribute( 'beans_post_gallery', 'class', 'uk-slidenav-position' ); | |
beans_remove_attribute( 'beans_post_gallery', 'class', 'uk-grid uk-grid-width-small-1-3' ); | |
beans_wrap_inner_markup( 'beans_post_gallery', 'svx_gallery_container', 'ul', array( | |
'class' => 'uk-slideshow uk-overlay-active', | |
) ); | |
beans_add_attribute( 'beans_post_gallery', 'data-uk-slideshow="{height:420,autoplay:true}"', '' ); | |
beans_modify_markup( 'beans_post_gallery_item', 'li' ); |
<?php | |
/*https://community.getbeans.io/discussion/video-post/#post-3032 */ | |
add_action( 'admin_init', 'my_function_name' ); | |
function my_function_name() { | |
$fields = array( | |
array( |
#Table of contents
Recommended ressources : https://developer.wordpress.com/
REST API Loop Menus Search Securize WP
Pixlr Editor
<?php | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'wp', 'beans_child_setup_document' ); | |
function beans_child_setup_document() { | |
// Only apply to non-singular layouts. | |
if ( !is_singular() ) { |
<?php | |
add_action( 'wp', 'sps_custom_output' ); | |
function sps_custom_output() { | |
if ( is_singular ( array ('post') ) ) { | |
/* Featured Image with Background Effect */ | |
beans_add_attribute( 'beans_post_header', 'class', 'uk-cover-background uk-position-relative uk-contrast' ); |
https://community.getbeans.io/discussion/off-canvas-menus/#post-476 | |
add_filter( 'beans_layout_grid_settings', 'example_modify_grid' ); | |
function example_modify_grid( $args ) { | |
return array_merge( $args, array( | |
'grid' => 6, | |
'sidebar_primary' => 1, | |
'sidebar_secondary' => 1, |
<?php | |
//https://community.getbeans.io/discussion/pretty-date/#post-1975 | |
// Change the post meta date prefix. | |
add_filter( 'beans_post_meta_date_prefix_output', 'example_post_meta_date_prefix' ); | |
function example_post_meta_date_prefix() { | |
echo 'Posted: '; |
<?php | |
//*https://community.getbeans.io/discussion/customize-post-view-on-index-php/#post-1737 | |
beans_modify_action_callback( 'beans_loop_template', 'example_loop' ); | |
function example_loop() { | |
if ( have_posts() && !is_404() ) : while ( have_posts() ) : the_post(); ?> |