Amanda Watson
asked on
none of my changes to the CSS in wordpress theme is reflected in site?
Hey there,
This is driving me CRAZY, but I am making changes to my css in wordpress and its not showing in my site. I have done the changes through the themes editor in the backed and I have tried FTP.
But when I check in firebug, the changes I make are not shown?
What is going on? Its like its reading a style sheet from somewhere else and I can't find it.
I seem to remember when setting up the blog that I indicated that it would use the theme from somewhere else but I just can't remember.
please help?
This is driving me CRAZY, but I am making changes to my css in wordpress and its not showing in my site. I have done the changes through the themes editor in the backed and I have tried FTP.
But when I check in firebug, the changes I make are not shown?
What is going on? Its like its reading a style sheet from somewhere else and I can't find it.
I seem to remember when setting up the blog that I indicated that it would use the theme from somewhere else but I just can't remember.
please help?
It sounds like you have a messy situation with different versions of themes and/or CSS files. So you are making the changes to the incorrect style sheet/theme.
Hard to give any solid answers without knowing the location of the CSS file you are editing and the link to the live site. But the best answer for now is to just double check the CSS file you are editing. Use View, Source or Firebug to determine the CSS file the site is using and work your way back from there.
Hard to give any solid answers without knowing the location of the CSS file you are editing and the link to the live site. But the best answer for now is to just double check the CSS file you are editing. Use View, Source or Firebug to determine the CSS file the site is using and work your way back from there.
ASKER
Righto well the blog is here
https://www.latinocellar.com/blog
and I am trying to remove the footer in the blog so I have made changes to
#colophon {
display:none;
}
in style.css in the correct place.
You will even see in firebug it shows you to go to themes/newspress/style.css
so I do, make the change upload and its not showing.
I have also edited as I said via the dashboard in the backend, and its not showing...so it seems the actual style sheet location is somewhere else??
https://www.latinocellar.com/blog
and I am trying to remove the footer in the blog so I have made changes to
#colophon {
display:none;
}
in style.css in the correct place.
You will even see in firebug it shows you to go to themes/newspress/style.css
so I do, make the change upload and its not showing.
I have also edited as I said via the dashboard in the backend, and its not showing...so it seems the actual style sheet location is somewhere else??
The ID 'colophone' is not used anywhere in your page. Perhaps you are working on too many projects at once? :)
If it is somewhere else, it will have to be called from somewhere in the them. It will either be linked in the header.php, or via import css file which is done with the @ symbol. The header link would be <link rel="....
Do you see anything like that in the theme?
Do you see anything like that in the theme?
You site is loading 8 different stylesheets (2 of which are called style.css)
As JF0 says, #colophon doesn't exist in your page. Your footer has an ID of 'footer' and can be hidden by adding display:none to the #footer rule - line 1423 of https://www.latinocellar.com/templates/theme056_shop/css/template.css
As JF0 says, #colophon doesn't exist in your page. Your footer has an ID of 'footer' and can be hidden by adding display:none to the #footer rule - line 1423 of https://www.latinocellar.com/templates/theme056_shop/css/template.css
ASKER
The wordpress blog is being loaded into the Joomla template via a wrapper, an iframe
IF you use firebug and see the credits in the footer of the WORDPRESS theme, not the joomla FOOTER you will see there is a tag called
#colophon {
}
it is there, its is line 1657, it is in style.css and I can see it when I edit the style sheet in the backend
It is just not reflected in the site when I make a change to that sheet.
IF you use firebug and see the credits in the footer of the WORDPRESS theme, not the joomla FOOTER you will see there is a tag called
#colophon {
}
it is there, its is line 1657, it is in style.css and I can see it when I edit the style sheet in the backend
It is just not reflected in the site when I make a change to that sheet.
ASKER
These are the stylesheets being called in the header.php
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php if(get_option("newspress_colorscheme") <> "" && get_option("newspress_colorscheme") <> "default") : $skin = get_option("newspress_colorscheme"); ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<?php echo $skin; ?>/style-<?php echo $skin; ?>.css" />
<?php endif; ?>
You probably already know this, but here is what WebDeveloper shows for the stylesheet URL's:
https://www.latinocellar.com/modules/mod_jo_accordion/styles/Default.css
https://www.latinocellar.com/templates/theme056/css/constant.css
https://www.latinocellar.com/templates/theme056/css/template.css
https://www.latinocellar.com/templates/theme056/css/virtuemart.css
https://www.latinocellar.com/templates/theme056/css/style.css
If that isn't it, maybe you are getting a cached version of your page?
https://www.latinocellar.com/modules/mod_jo_accordion/styles/Default.css
https://www.latinocellar.com/templates/theme056/css/constant.css
https://www.latinocellar.com/templates/theme056/css/template.css
https://www.latinocellar.com/templates/theme056/css/virtuemart.css
https://www.latinocellar.com/templates/theme056/css/style.css
If that isn't it, maybe you are getting a cached version of your page?
I just noticed that this link:
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<? php echo $skin; ?>/style-<?php echo $skin; ?>.css" />
appears to be in a folder named color-scheme, but none of the URL's reflect that directory. Is it possible the folder has been re-named?
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<?
appears to be in a folder named color-scheme, but none of the URL's reflect that directory. Is it possible the folder has been re-named?
ASKER
ok all those style sheets are the JOOMLA style sheets
The folder has not been renamed.
when you use firebug don't you see what i am talking about...ill show you an image
latino3.png
The folder has not been renamed.
when you use firebug don't you see what i am talking about...ill show you an image
latino3.png
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
ooh why didn't I think of that...that did prove an interesting exercise...the blog was still styled...however I got these errors
Warning: fopen(D:\sites\latinocella r\latinoce llar.com\h ome\latino cellarblog /wp-conten t/themes/n ewspress/s tyle.css) [function.fopen]: failed to open stream: No such file or directory in D:\sites\latinocellar\lati nocellar.c om\home\la tinocellar blog\wp-in cludes\fun ctions.php on line 4284
Warning: fread(): supplied argument is not a valid stream resource in D:\sites\latinocellar\lati nocellar.c om\home\la tinocellar blog\wp-in cludes\fun ctions.php on line 4287
Warning: fclose(): supplied argument is not a valid stream resource in D:\sites\latinocellar\lati nocellar.c om\home\la tinocellar blog\wp-in cludes\fun ctions.php on line 4290
Warning: fopen(D:\sites\latinocella
Warning: fread(): supplied argument is not a valid stream resource in D:\sites\latinocellar\lati
Warning: fclose(): supplied argument is not a valid stream resource in D:\sites\latinocellar\lati
ASKER
This is the function that cause those errors
* Searches for metadata in the first 8kiB of a file, such as a plugin or theme.
* Each piece of metadata must be on its own line. Fields can not span multple
* lines, the value will get cut at the end of the first line.
*
* If the file data is not within that first 8kiB, then the author should correct
* their plugin file and move the data headers to the top.
*
* @see http://codex.wordpress.org/File_Header
*
* @since 2.9.0
* @param string $file Path to the file
* @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name')
* @param string $context If specified adds filter hook "extra_{$context}_headers"
*/
function get_file_data( $file, $default_headers, $context = '' ) {
// We don't need to write to the file, so just open for reading.
$fp = fopen( $file, 'r' );
// Pull only the first 8kiB of the file in.
$file_data = fread( $fp, 8192 );
// PHP will close file handle, but we are good citizens.
fclose( $fp );
* Searches for metadata in the first 8kiB of a file, such as a plugin or theme.
* Each piece of metadata must be on its own line. Fields can not span multple
* lines, the value will get cut at the end of the first line.
*
* If the file data is not within that first 8kiB, then the author should correct
* their plugin file and move the data headers to the top.
*
* @see http://codex.wordpress.org/File_Header
*
* @since 2.9.0
* @param string $file Path to the file
* @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name')
* @param string $context If specified adds filter hook "extra_{$context}_headers"
*/
function get_file_data( $file, $default_headers, $context = '' ) {
// We don't need to write to the file, so just open for reading.
$fp = fopen( $file, 'r' );
// Pull only the first 8kiB of the file in.
$file_data = fread( $fp, 8192 );
// PHP will close file handle, but we are good citizens.
fclose( $fp );
ASKER
And believe it or not, it is still telling me I can edit this file
https://www.latinocellar.com/latinocellarblog/wp-content/themes/newspress/style.css
to edit the stylesheet, but of course it doesn't exist in that folder now as I have renamed it...so where on earth is it getting its styling FROM??
https://www.latinocellar.com/latinocellarblog/wp-content/themes/newspress/style.css
to edit the stylesheet, but of course it doesn't exist in that folder now as I have renamed it...so where on earth is it getting its styling FROM??
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
So I changed the header to be
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://www.latinocellar.com/latinocellarblog/wp-content/themes/newspress/style.css
" />
<?php if(get_option("newspress_c olorscheme ") <> "" && get_option("newspress_colo rscheme") <> "default") : $skin = get_option("newspress_colo rscheme"); ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<? php echo $skin; ?>/style-<?php echo $skin; ?>.css" />
so there was a direct link to the style sheet, still it doesn't change anything.
But then I removed this line
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<? php echo $skin; ?>/style-<?php echo $skin; ?>.css" />
and the colors changes, so it is reading that header file??
What is going on???
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://www.latinocellar.com/latinocellarblog/wp-content/themes/newspress/style.css
" />
<?php if(get_option("newspress_c
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<?
so there was a direct link to the style sheet, still it doesn't change anything.
But then I removed this line
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/library/color-scheme/<?
and the colors changes, so it is reading that header file??
What is going on???
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
what the!!??
it is gone???
Crikey, it would of had to have been when I made the direct reference to the css in the header
it is gone???
Crikey, it would of had to have been when I made the direct reference to the css in the header
ASKER
Thanks everyone
EXAMPLE:
/wp-content/themes/your-th
If that is the case the CSS in the theme editor will have something like this:
@imort style.css, or it will be in the header of your theme.