Williamhm
Respostas no Fórum
-
Fórum: Temas
Em resposta a: Menu dropdownÉ isso mesmo que eu preciso, obrigado pela ajuda.
Fórum: Temas
Em resposta a: Menu dropdownEntão deixa sem o efeito mesmo, quando colocar no ar tento fazer um com o efeito.
Fórum: Temas
Em resposta a: Menu dropdownEntão, queria colocar esse efeito e essas bordas do retangulo que aparece quando passa o mouse sobre.
É bem parecido com esse que você criou, só mudar alguns detalhes (acho).
Fórum: Temas
Em resposta a: Menu dropdownQuase isso, vou te passar o site com esse menu pra você dar uma olhada.
Fórum: Temas
Em resposta a: Menu dropdownOk, obrigado pela ajuda.
Fórum: Temas
Em resposta a: Menu dropdownÈ que comecei a fazer o template em uma semana, e o detalhe que falta no layout é só esse menu.
Assim que fazer ele ja vou colocar o site no ar.
Queria colocar essa semana que esta chegando, mas esse menu ai esta dando trabalho.Fórum: Temas
Em resposta a: Menu dropdownSerá que tem como fazer?
Fórum: Temas
Em resposta a: Menu dropdowno outro:
/* Menu Helpers ----------------------------------------------------------------------------------------------------*/ .menu, .menu ul { margin: 0px; padding: 0px; list-style: none; } .menu a, .menu span { display: block; } .menu a { text-decoration: none; } /* Mega Drop-Down Menu ----------------------------------------------------------------------------------------------------*/ .menu-dropdown li { position: relative; } /* Level 1 */ .menu-dropdown, .menu-dropdown .level1, .menu-dropdown .level1 > span { float: left; } .menu-dropdown a.level1 > span, .menu-dropdown span.level1 > span { height: 35px; padding: 0 10px; line-height: 35px; } /* Drop-Down */ .menu-dropdown .dropdown { display: none; position: absolute; top: 35px; left: 0; z-index: 100; width: 300px; /* Default */ } .menu-dropdown li:hover .dropdown, .menu-dropdown li.remain .dropdown { display: block; } .menu-dropdown .dropdown-bg > div { overflow: hidden; } /* Multi Columns, Default */ .menu-dropdown .columns2 { width: 600px; } .menu-dropdown .columns3 { width: 900px; } .menu-dropdown .columns4 { width: 1200px; } .menu-dropdown .column { float: left; } /* Level 2 */ .menu-dropdown a.level2 > span, .menu-dropdown span.level2 > span { padding: 7px 0; line-height: 21px; overflow: hidden; } /* Level 3 */ .menu-dropdown ul.level3 { padding-bottom: 10px; } .menu-dropdown li.level3 { /* Must be set in li for IE7 */ font-size: 11px; line-height: 17px; } /* Icons */ .menu-dropdown span.icon { display: block; width: 35px; height: 35px; background-repeat: no-repeat; background-position: 50% 50%; float: left; } .menu-dropdown span.icon + span, .menu-dropdown span.icon + span + span { margin-left: 35px; } .menu-dropdown li.level2 .level2 span.icon { margin-top: -7px; margin-bottom: -7px; } .menu-dropdown li.level2.hassubtitle .level2 span.icon { margin-top: -2px; } /* Subtitles */ .menu-dropdown span.title { line-height: 21px; } .menu-dropdown span.subtitle { margin-top: -1px; font-size: 9px; line-height: 10px; text-indent: 1px; } /* Sidebar/Accordion Menu ----------------------------------------------------------------------------------------------------*/ /* Accordion */ .menu-sidebar li.parent span.level1 > span { cursor: pointer; } /* Level 1 */ .menu-sidebar a.level1 > span, .menu-sidebar span.level1 > span { padding: 5px 0; line-height: 20px; } /* Remove Subtitles */ .menu-sidebar span.title { display: inline; } .menu-sidebar span.subtitle { display: none; } /* Level 2-4 */ .menu-sidebar ul.level2 { padding-bottom: 10px; } .menu-sidebar li.level1:last-child ul.level2 { padding-bottom: 0; } .menu-sidebar .level2 a > span { font-size: 11px; line-height: 17px; } /* Icons */ .menu-sidebar span.icon { display: inline-block; height: 30px; width: 30px; margin: -5px 0; background-repeat: no-repeat; background-position: 50% 50%; vertical-align: middle; } /* Line Menu ----------------------------------------------------------------------------------------------------*/ /* Level 1 */ .menu-line, .menu-line li, .menu-line li a { display: inline-block; }@import url(../css/menus.css); /* Mega Drop-Down Menu ----------------------------------------------------------------------------------------------------*/ /* Level 1 */ .menu-dropdown { margin-bottom: -11px; } .menu-dropdown li.level1 { margin-right: 10px; padding-bottom: 11px; } .menu-dropdown a.level1, .menu-dropdown span.level1 { color: #777; } .menu-dropdown a.level1 > span, .menu-dropdown span.level1 > span { height: 30px; line-height: 30px; } /* Set Hover and Active */ .menu-dropdown li.level1:hover .level1, .menu-dropdown li.remain .level1, .menu-dropdown li.active .level1 { color: #444; } /* Drop-Down */ .menu-dropdown .dropdown { top: 43px; border-top: 1px solid #DDD; } .menu-dropdown .dropdown-bg > div { padding: 5px; border: 1px solid #DDD; border-top: none; background: #fff; } /* Level 2 */ .menu-dropdown li.level2 { margin: 0 5px; border-top: 1px solid #ddd; } .menu-dropdown li.level2:first-child { border: none; } .menu-dropdown a.level2, .menu-dropdown span.level2 { color: #444; } /* Set Hover */ .menu-dropdown a.level2:hover { color: #d50; } /* Set Current */ .menu-dropdown a.current.level2 { font-weight: bold; } /* Level 3 */ .menu-dropdown a.level3 > span, .menu-dropdown span.level3 > span { padding-left: 15px; background: url(../images/menu_dropdown_level3.png) 0 50% no-repeat; } /* Set Hover */ .menu-dropdown a.level3:hover { color: #d50; } /* Set Current */ .menu-dropdown a.current.level3 { font-weight: bold; } /* Icons */ .menu-dropdown .level1 .level1 span.icon { width: 30px; height: 30px; margin-left: -5px; } .menu-dropdown .level1 .level1 span.icon + span, .menu-dropdown .level1 .level1 span.icon + span + span { margin-left: 25px; } .menu-dropdown li.level2 .level2 span.icon { margin-right: 4px; } .menu-dropdown li.level2 .level2 span.icon + span, .menu-dropdown li.level2 .level2 span.icon + span + span { margin-left: 39px; } /* Subtitles */ .menu-dropdown .level1 .level1 span.title { line-height: 18px; } .menu-dropdown .level1 .level1 span.subtitle { margin-top: -1px; } /* Sidebar/Accordion Menu ----------------------------------------------------------------------------------------------------*/ /* Link */ .menu-sidebar a, .menu-sidebar li > span { color: #444; } /* Hover */ .menu-sidebar a:hover, .menu-sidebar li > span:hover { color: #d50; } /* Current */ .menu-sidebar a.current { font-weight: bold; } /* Level 1 */ .menu-sidebar li.level1 { border-top: 1px solid #ddd; } .menu-sidebar li.level1:first-child { border-top: none; } .menu-sidebar li.parent .level1 > span { background: url(../images/menu_sidebar_parent.png) 100% 0 no-repeat; } .menu-sidebar li.parent.active .level1 > span { background-position: 100% -100px; } /* Level 2-4 */ .menu-sidebar ul.level2 ul { padding-left: 10px; } /* Icons */ .menu-sidebar span.icon { margin-right: 4px; } /* Line Menu ----------------------------------------------------------------------------------------------------*/ .menu-line li { margin-left: 7px; padding-left: 8px; background: url(../images/menu_line_item.png) 0 50% no-repeat; } .menu-line li:first-child { margin-left: 0; padding-left: 0; background: none; }Fórum: Temas
Em resposta a: Menu dropdownO original
/* =Menu -------------------------------------------------------------- */ #access { background: #1b1b1b; display: block; float: left; margin: 0 auto; width: 960px; height:41px; } #access .menu-header, div.menu { font-size: 15px; margin-left: 12px; width: 928px; } #access .menu-header ul, div.menu ul { list-style: none; margin: 0; } #access .menu-header li, div.menu li { float: left; position: relative; } #access a { color: #aaa; display: block; line-height: 38px; padding: 0 10px; text-decoration: none; } #access ul ul { box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); display: none; position: absolute; top: 38px; left: 0; float: left; width: 180px; z-index: 99999; } #access ul ul li { min-width: 180px; } #access ul ul ul { left: 100%; top: 0; } #access ul ul a { background: #333; line-height: 1em; padding: 10px; width: 160px; height: auto; } #access li:hover > a, #access ul ul :hover > a { background: #333; color: #fff; } #access ul li:hover > ul { display: block; } #access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { color: #fff; } * html #access ul li.current_page_item a, * html #access ul li.current-menu-ancestor a, * html #access ul li.current-menu-item a, * html #access ul li.current-menu-parent a, * html #access ul li a:hover { color: #fff; }Fórum: Temas
Em resposta a: Menu dropdownEsse é o problema, fazer menu em css é o que eu não sei fazer, peguei o código desse menu e ele esta interligado em varios arquivos. Ai fica complicado de entender como funciona, por isso queria alguma ajuda para deixar desse jeito ai.
Fórum: Temas
Em resposta a: Shortcode no single.php e page.phpProblema resolvido, não era o código que estava com problema e sim uma opção do plugin, era só ativar a caixa Preload skin, o plugin é configurado para aparecer somente em uma página, quando abilito esta caixa, aparece onde eu inserir o shortcode, obrigado pela ajuda P. Bonot.
Fórum: Temas
Em resposta a: Shortcode no single.php e page.phpO problema é que não entendo porque não aparece somente nestas paginas
Fórum: Temas
Em resposta a: Shortcode no single.php e page.phpJa tentei colocar na sidebar mais não consegui colocar no topo do site
Header
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="barra-top"> <div id="barra-top-texto"> <?php the_time('j \d\e F \d\e Y') ?> </div> </div> <div id="header-logo"> <div id="header-texto"></div> </div> <div id="menu_hd"> <div id="menu_texto"> <div id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #access --> </div> </div> <div id="slide"> <div id="slide_ct"> <?php dynamic_sidebar( 'slide' ); ?> </div> </div> <div id="main">Widget
// Area Slide, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Slide', 'twenty' ), 'id' => 'slide', 'description' => __( 'Area do slide', 'twenty' ), 'description' => __( 'The primary widget area', 'twentyten' ), 'before_widget' => '<h1 id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );em “before_widget” troquei li por h1 pois estava aparecendo como texto.
Fórum: Temas
Em resposta a: Shortcode no single.php e page.phpEu criei um widget e coloquei no header para que apareça em todas páginas, mas o problema é que o espaço fica em branco somente na página post.php e single.php, por isso não tem como colocar o shortcode em cada uma delas.
Sim, o slide é um plugin.
Eu estava desenvolvendo um template do zero e deu esse mesmo problema, estão resolvi editar o Twenty ten e deu certo, mais não no post e single.php.