custom widget area wordpress
<?php
/**
* Register our sidebars and widgetized areas. - Most times you can place this instead your fuction file.
*
*/
function arphabet_widgets_init() {
register_sidebar( array(
'name' => 'Home right sidebar',
'id' => 'home_right_1',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
?>
/* show sidebar - template file */
<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'home_right_1' ); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
Also in PHP:
- currrent datetime to string php
- convert y-m-d to timestamp php
- curl_setopt_array php
- check if key array php
- date and hour php
- composer laravel install
- You want to develop a Laravel application on your Windows machine. For this, you installed the Laravel framework on your system. In which of the following scenarios, Laravel will not run on your system?
- create new laravel project
- end session variable php
- codeigniter get id after insert
- date format ph
- built in functions in php for uppercase
- convert string to caps in php
- create DateTime from timestamp php
- base64 image encode php
- exact time in php
- error handeling oops php
- change max_execution_time php on script
- create a new project laravel
- Carbon\Carbon::today()->format('Y-m-d') in blade
- [WAR] 70 (lib\peer.php:164) file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- day of the week th usig php
- convert string to lowercase in php
- Adding code to header tag php website