2012-02-22 74 views
0

我在做一些改變我的網站的過程中,我在http://wpdallas.com/test圖標和圖片沒有顯示?任何想法爲什麼?

運行測試版本。如果你看一下右上方應該有一個圖像和一些社會媒體圖標(如在http://noahsdad.com/),但我似乎無法讓它顯示正確。有任何想法嗎?

謝謝。

編輯:這裏是兒童主題使用我「米的CSS代碼CSS是存在的,但由於某種原因它不重寫父CSS)

/* 
Theme Name: Standard Preview Child Theme 
Description: Standard is a meticulously designed and coded theme for professional blogging. It adapts to mobile devices and individual posts can be styled distinctly for words, images, quotes, links, videos, or statuses. It includes a light and dark style sheet and precision, zero-config SEO techniques are built-in. Visitors will love it. Search engines will love it. And you will love it. 
Author: 8BIT 
Template: Standard 
*/ 

@import url("../Standard/style.css"); 

.iframe { width:580px !important; height: 326px !important; } 

/* Social Updates */ 
#text-25 {position:relative;} 
#social   {background:url(http://wpdallas.com/test/wp-content/uploads/2012/02/noah-front-page-standard.jpg) no-repeat; height:300px; width:300px; position:relative;} 
.social_icon  {height:32px; width:32px; display:inline-block;} 
.social_trans  {height:32px; width:32px;} 
#social_dock  {position:absolute; top:70px; left:8px;} 
#social_dock a * {border:0;} 
#subscribe_dock  {position:absolute; bottom:12px; left:8px;} 
#social #facebook {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat;} 
#social #twitter {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -32px 0px;} 
#social #youtube {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -64px 0px;} 
#social #rss  {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -96px 0px;} 
#social #pintrest {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -128px 0px;} 
#social #googleplus {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -160px 0px;} 

#email-subscription-box {width: 244px !important; text-algn:center; margin-top:15px;} 

/* Add Border Strip on Post Titles */ 
h2.title {font-size: 16px; line-height: 24px; border-left: 5px solid #2e3192; padding-left: 8px; 
    -webkit-transition-property: *; 
    -webkit-transition-duration: 1s; 
    -moz-transition-property: *; 
    -moz-transition-duration: 1s; 
    } 
h2.title:hover {border-left: 5px solid #d5145a; padding-left: 5px;} 

[css].bsap-wrapper { -moz-border-radius: 4px; -webkit-border-radius: 4px; background: #FFFFFF; border-radius: 4px; padding: 15px 0 10px 15px; } 
.bsap-wrapper .bsap a { margin-right: 17px; }[/css] 

.content iframe { width:580px; height: 326px; } 
+0

這太好笑了。嗨裏克,你通過網絡知道我妻子格雷琴。我們的兒子朱利安也是特殊的需要。如果您需要任何一對一幫助,請告訴我。 tsherman57 gmail – mrtsherman 2012-02-22 05:37:02

+0

哇,這很有趣!你是像我這樣的書呆子嗎?哈哈。 (你知道我的css發生了什麼嗎?) – 2012-02-22 05:40:28

+0

你指的是哪個社交媒體圖標?我看到一些在一個更黑的酒吧的頂部。在諾亞的爸爸,我看到社交媒體鏈接看起來是一個右手邊的小部件。如果您使用小部件,我們需要知道哪一個。另外,您應該瞭解http://wordpress.stackexchange.com,它更適合回答WP問題,而SO最適合編程問題。 – mrtsherman 2012-02-22 05:40:31

回答

0

對於畫面閱讀」。嗨,我是諾亞',也是圖標,圖像不顯示,因爲背景圖像沒有在您的CSS中指定

在NoahsDad.com,你好我是諾亞圖片顯示以下CSS

#social { 
    background: url(http://noahsdad.com/wp-content/uploads/2012/02/bg2.jpg) no-repeat; 
    height: 260px; 
    width: 260px; 
    position: relative; 
} 

http://wpdallas.com/test/網站根本不包含此CSS。你應該檢查你的CSS引用是否正確並加載。

更新:

你的CSS文件是在

http://wpdallas.com/test/wp-content/themes/Standard-Child-Theme-1/style.css 

按照Wordpress docs這不是子主題的正確路徑設置。一個孩子主題進入父母的目錄。

public_html 
    wp-content 
    themes (directory where all themes are) 
     twentyten (directory of our example parent theme, Twenty Ten) 
     twentyten-child (directory of our child theme; can be named anything) 
      style.css (required file in a child theme; must be named style.css) 

我認爲你應該在http://wordpress.stackexchange.com因爲WP API是不是我的強項轉貼了這個問題。像這樣的短語:

我有一個名爲標準兒童主題-1的兒童主題。 style.css文件沒有被加載。我的網站是http://wpdallas.com/test。有人可以幫我解答爲什麼它沒有被包含嗎?

+0

嗯。我正在看我的樣式表,它確實有這個CSS。這是一個孩子的主題,所以我想知道這是否與它有關呢?這是我的CSS爲這個孩子的主題。我不知道如何插入我的代碼在這裏讓你看到...當我嘗試縮進它去'保存編輯「.....? – 2012-02-22 05:53:34

+0

好吧,@ mrtsherman我添加了CSS。 :) – 2012-02-22 06:14:05

+0

它在這裏。 http://wpdallas.com/test/wp-content/themes/Standard-Child-Theme-1/style.css – 2012-02-22 06:31:10

0

我出現了與這些圖標出現相同/相似的問題。雖然我的CSS似乎設置正確,但我仍然沒有看到圖標。

將父主題中的文件夾「images」複製並粘貼到子主題文件夾中,立即清除問題。