Woocommerce,Wootique主題,貨幣小工具。登錄/註冊和貨幣小工具在標題WordPress的
右鍵我想這樣做有貨幣轉換器插件和我的登錄/在標題的右上角的註冊鏈接到我的標誌,像這樣的權利:
登錄/註冊|貨幣箱| (在同一行)
貨幣轉換器是一個小部件,所以我說的這段代碼到我的functions.php設法使一個小工具區域的頭不是widgeted區域:
/*Extra sidebar*/
register_sidebars(1,
array(
'name' => 'widgetized-page-top',
'before_widget' => '
<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>
',
'before_title' => '
<h2 class="widgettitle">',
'after_title' => '</h2>
'
)
);
於是,我試圖將此代碼添加到我的頭,但它並沒有一致的權利......
<div class="header">
<div id="topwidget">
<b><a href="http://casper-creations.com/my-account/" class="footlinks">Login/Register</a>
\t \t
\t \t \t <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar("widgetized-page-top")) : ?>
\t \t \t <?php endif; ?>
\t </div>
\t \t \t \t \t
\t <div id="logo">
\t
我有一種感覺,這個代碼是完全錯誤的開始,但我想這樣做它移到就像我說的對準我的標誌右邊的頭,像這樣http://imgur.com/uotLUDd這裏是CSS我迄今似乎並不被太多要麼做:
#topwidget {
float: right;
width: 980px;
overflow: hidden;
}
這裏是網站...
http://www.casper-creations.com
任何幫助,這將不勝感激,因爲我相信你能告訴我只是一個初學者...
編輯:
我刪除了widgeted區域件事因爲只是插入短代碼,但出於某種原因,而不是在div中的一切,你不能點擊鏈接或打開下拉?
<div id="wrapper">
<?php if (function_exists('has_nav_menu') && has_nav_menu('top-menu')) { ?>
<div id="top">
<div class="col-full">
<?php wp_nav_menu(array('depth'=>6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'top-nav', 'menu_class' => 'nav fl', 'theme_location' => 'top-menu')); ?>
</div>
</div>
<!-- /#top -->
<div id="logincur">
<a href="http://casper-creations.com/my-account/"><b>Login/Register</b></a>
<?php echo do_shortcode('[woocs]');?>
</div>
<?php } ?>
<div class="header">
#logincur {
float: right;
margin-right: 15%;
overflow: hidden;
}
我試圖把它變成頭的div和出頭格,沒有變化呢?
感謝那個感動,但現在它什麼也沒做?!您可以點擊鏈接或打開下拉菜單?另外我怎麼讓他們在相同的行旁邊而不是在單獨的行上? – 2015-02-12 00:04:47