New Topic

Reply To: Customization (My Website)

Home › Forum › Customization › Customization (My Website) › Reply To: Customization (My Website)

#885

uendi
Participant

Hello StartupWP,

Below all these are my customize code, functions.php and footer.php :

1. Customize code

/* Header */
body { margin-top: 6%; }
#branding { margin-bottom: 30px; }

/* Menu Background */
#wrapper nav #s { background: none repeat scroll 0 0 #FFFFFF; width: 180px; }
nav li.current-menu-item a, nav li.current_page_item a { color: #FFFFFF; text-shadow: 1px 1px 1px #333333; border-radius: 5px !important; }
nav { background: linear-gradient(#DBB84D 0%, #DBB84D 50%, #B88A00 100%) repeat scroll 0 0 transparent; }
nav ul li a { border-right: 0 none; padding: 0 25px; }

/* Sub Menu Dropdown Background */
nav ul li:hover ul li a:hover, nav ul ul li:hover ul li a:hover, nav ul ul ul li:hover ul li a:hover { background: linear-gradient(#171717 0%, #171717 50%, #454545 100%) !important; border-right: 0 none; border-left: 0 none; border-top: 0 none; border-bottom: 0 none; }
nav ul li:hover a { background: linear-gradient(#009DD5 0%, #009DD5 50%, #33D0FF 100%) repeat scroll 0 0 transparent; border-radius: 5px 5px 5px 5px; }
nav ul li:hover ul li a, nav ul ul li:hover ul li a, nav ul ul ul li:hover ul li a { border: 0 none; opacity: 1; }
nav ul li a:hover { border: 0px solid #000; box-shadow: none; }

/* Page Title */
.entry-title { display: none; }

/* Page Edit */
.post-edit-link { display: none; }

/* Left Sidebar */
.widget-title { border-bottom: 0 none; font-size: 15px; font-weight: bold; font-family: arial, tahoma, sans-serif; color: #584A1F; padding: 13px; margin: 5px 0; }
.widget-container { padding: 5px 10px; width: 270px; margin: 1px -19px; min-height: 690px; box-shadow: 10px 10px 5px #888888, -8px -8px #F4F4F4, 0px 0px 5px 5px #B88A00; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.widget-container a { font-size: 13px; font-family: arial, tahoma, sans-serif; color: #584A1F; margin: 5px 0; padding: 5px; text-decoration: none; display: block; }
.widget-area { line-height: 20px; }
.widget-area a {line-height: 40px; }
#menu-my-categories-menu li { list-style: none outside none; color: #584A1F; line-height: 10px; }
#menu-my-categories-menu li a { border-top: 2px dotted #584A1F; display: inline-block; margin: 1px 0; padding: 2px 5px; width: 80%; line-height: 25px; }
#menu-my-categories-menu li a:after { content: “>>”; padding: 10px; font-size: 10px; }
#menu-my-categories-menu li li a:after { content: “>>”; padding: 0 0 0 13px; font-size: 10px; }
#menu-my-categories-menu .sub-menu { display: none !important; }

/* Contact Form 7 (Submit Button) */
#content input[type=”submit”], #content input[type=”reset”], #container #searchsubmit, .button, #new-topic { background: none repeat 0 0 #AAAAAA; border: 0 none;
box-shadow: none; }

/* Contact Form 7 (Insert Color Asterisk) */
.aster { color: #FF0000 }

/* Footer Menu Background */
footer { background: linear-gradient(#DBB84D 0%, #DBB84D 50%, #B88A00 100%) repeat scroll 0 0 transparent; height: 60px; padding: 1px 0 35px; border-radius: 5px 5px; }
footer a, #copyright { color: #584A1F; text-shadow: none !important; font-size: 12px; }

2. Functions.php

<?php
add_action( ‘widgets_init’, ‘startup_widgets_init_child’ );
function startup_widgets_init_child() {
register_sidebar( array (
‘name’ => __(‘Footer Widget Area 2’, ‘startup’ ),
‘id’ => ‘footer-widget-area-2’,
‘before_widget’ => ‘<li id=”%1$s” class=”widget-container %2$s”>’,
‘after_widget’ => ““,
‘before_title’ => ‘<h3 class=”widget-title”>’,
‘after_title’ => ‘</h3>’,
) );
}
?>

3. Footer.php

<?php $options = get_option(‘startup_options’); ?>
<div class=”clear”></div>
</div>
<footer>
<div id=”footer-sidebar”>
<?php if ( is_active_sidebar(‘footer-widget-area-2’) ) : ?>
<div id=”fsidebar” class=”widget-area”>
<ul class=”sid”>
<?php dynamic_sidebar(‘footer-widget-area-2’); ?>

<div class=”clear”></div>
</div>
<?php endif; ?>
</div>
<?php if ( has_nav_menu( ‘footer-menu’ ) ) : ?>
<div id=”fmenu”><?php wp_nav_menu( array( ‘theme_location’ => ‘footer-menu’, ‘depth’ => ‘1’ ) ); ?></div>
<?php endif; ?>
<div id=”copyright”>
<?php
if ($options[‘copyright’]!=””) echo do_shortcode( $options[‘copyright’]); else echo sprintf( __( ‘%1$s %2$s %3$s. All Rights Reserved.’, ‘startup’ ), ‘©’, date(‘Y’), esc_html(get_bloginfo(‘name’)) );
if ( $options[‘credit’] ){ echo ‘ ‘ . sprintf( __( ‘Proudly Built with %1$s and %2$s.’, ‘startup’ ), ‘StartupWP‘, ‘WordPress‘ ); }
?>
</div>
</footer>
<div id=”footer-sidebar”>
<?php if ( is_active_sidebar(‘footer-widget-area’) ) : ?>
<div id=”fsidebar” class=”widget-area”>
<ul class=”sid”>
<?php dynamic_sidebar(‘footer-widget-area’); ?>

<div class=”clear”></div>
</div>
<?php endif; ?>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>

Thanks.