Friday, May 22, 2015

example of box centering menu in wordpress mainav menu

#mainnav-menu {
//float: left;
//list-style-type: none;
//list-style-position: outside;
//position: relative;
//background: #004488;
//adaugat de mine
   
width: 70%;
height: 5%;
top: 28%;
left: 8%;
position: absolute;
margin-top: 1%;
margin-left: 0px;
border: solid 1px #ccc;
background: #004488;
}

Saturday, May 2, 2015

change credit link, powered by in wordpress theme

look in theme folder "inc" and locate the file
named "template-tags".
there is a line like this:

// Display Footer Text
add_action( 'smartline_footer_text', 'smartline_display_footer_text' );

function smartline_display_footer_text() { ?>


<span class="credit-link">
<?php printf(__( 'Powered by %1$s %2$s.', 'smartline-lite' ),
sprintf( '<a href="http://mh.edu.ro/" title="Copyright © 2014 Inspectoratul Scolar">%s</a>', __( 'Inspectoratul Scolar', 'smartline-lite' ) ),
sprintf( '<a href="http://http://mh.edu.ro/" title="Judetean Mehedinti">%s</a>', __( 'Judetean Mehedinti', 'smartline-lite' ) )
); ?>
</span>

Friday, May 1, 2015

Center box with CSS in wordpress sylesheets.css thanks to: http://stackoverflow.com

.jqbox_innerhtml
{
    position: fixed;
    width:500px;
    height:200px;
    background-color:#FFF;
    padding:10px;
    border:5px solid #CCC;
    z-index:200;
    margin: 5% auto;
}
How to center this box with CSS?
Full code
<html>
<head>
<style>
body
{
    margin:0px;
}
.jqbox_shadow
{
    position: fixed;
    width: 100%;
    opacity: 0.9;
    top:0px;
    margin:0px;
    min-height:200px;
    height:100%;
    z-index: 0;
    background: #000;
    font-size: 20px;
    text-align: center;
}
.jqbox_innerhtml
{
    position: fixed;
    width:500px;
    height:200px;
    background-color:#FFF;
    padding:10px;
    border:5px solid #CCC;
    z-index:200;
    margin-left:auto;
    margin-right: auto;
}

</style>