SHARE
TWEET

Contoh Pasang Header Gambar di WP Flexitemes

pustakakoran May 17th, 2017 (edited) 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php global $theme; ?><!DOCTYPE html><?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <?php $theme->hook('meta'); ?>
  7. <link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/reset.css" type="text/css" media="screen, projection" />
  8. <link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/defaults.css" type="text/css" media="screen, projection" />
  9. <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/ie.css" type="text/css" media="screen, projection" /><![endif]-->
  10.  
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
  12.  
  13. <?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>
  14. <?php  wp_head(); ?>
  15. <?php $theme->hook('head'); ?>
  16.  
  17. </head>
  18.  
  19. <body <?php body_class(); ?>>
  20. <?php $theme->hook('html_before'); ?>
  21.  
  22. <div id="container">
  23.  
  24.     <div class="clearfix">
  25.         <?php if($theme->display('menu_primary')) { $theme->hook('menu_primary'); } ?>
  26.        
  27.         <div id="top-social-profiles">
  28.             <?php $theme->hook('social_profiles'); ?>
  29.         </div>
  30.     </div>
  31.    
  32.  
  33.  
  34.     <div id="header">
  35.  
  36. <a href="<?php echo home_url(); ?>">
  37. <img src="http://humas.natunakab.tk/img/header-humas2017.jpg" width="960" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />
  38. </a>
  39.  
  40.        
  41.     </div><!-- #header -->
  42.    
  43.     <?php if($theme->display('menu_secondary')) { ?>
  44.         <div class="clearfix">
  45.             <?php $theme->hook('menu_secondary'); ?>
  46.         </div>
  47.     <?php } ?>
  48.  
  49. <marquee bgcolor="4682B4" scrolldelay="120" style="font-family:Arial Rounded MT Bold; font-size:14px; color:Yellow;"><b>SELAMAT DATANG di Situs Resmi Bagian Humas Sekretariat Daerah - Pemerintah Kabupaten Natuna, Provinsi Kepulauan Riau</b></marquee>
  50.  
  51.  
  52.  
  53.  
  54.  
  55. ==============
  56. bagian CSS-nya:
  57.  
  58. #header {
  59.     height: auto;
  60.     background: #FFFFFF;
  61. margin-bottom: -2px;
  62. }
  63.  
  64.  
  65. margin-bottom: -2px; >> untuk menghilangkan jarak putih di bawah gambar header
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top