2012-02-22 70 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”复制并粘贴到子主题文件夹中,立即清除问题。