Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] whats is the dynamic CSS in the Header.php?


  #1  
Old Apr 27, 2010, 10:27 PM
Briggsm8
 
9 posts · Apr 2010
Brisbane
Soo i need to remove the dymanic css from the header.php but i don't know what the hell it looks like to be able to find it in the code..... just took me 20mins to find how to add this thread. ehh...
  #2  
Old Apr 28, 2010, 03:08 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Atahualpa and wp?
What is your URL?

Why do you want to remove the CSS?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 28, 2010, 05:15 PM
Briggsm8
 
9 posts · Apr 2010
Brisbane
Heyy,

I have wp 2.9.2 and Atahualpa 3.4.6, what i am trying to do is speed up the site a little by cutting the css rules from the header in the websites code viewed in the browser and pasting it at the bottom of the style.css file in Atahualpa. That is what i have done so far, but it is telling me to remove the dynamic css from the header.php. The website is http://www.briggs-motor-repairs.com.au/

Here is the part i was just following and got stuck with.

- The actual CSS styles for Atahualpa3 are located in style.css and header.php
After you're totally done with all your customizations, you could view the source
code of your site in the browser, cut the CSS rules from the header section, and paste them at the
bottom of style.css. Then remove the dynamic CSS part from header.php. That would save around 8-12 kbyte per pageview.
It starts with:
<style type="text/css">
body {
<?php echo $bfa_ata['body_style']; ?>
}
Ends with:
background-image: url(<?php echo get_bloginfo('template_directory'); ?>/images/expand-down<?php echo ($bfa_ata['cat_menu_arrows'] == "white" ? "-white" : ""); ?>.gif);
}
<?php } ?>
<?php echo $bfa_ata['html_inserts_css']; ?>
</style>

Thanks, Andrew
  #4  
Old Apr 29, 2010, 07:54 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
To use the CSS statically, here is what you should do.
1) set the CSS for INTERNAL (ato->Configure CSS & JS->CSS: External file or inline?
2) view a page then view the source of the page
3) copy the page source to a text editor
4) delete everything from the begining or the file to the line begining with <style type="text/css">

If you have ato->Configure CSS & JS->CSS: Compress? set to 'NO' it will be followed by
HTML Code:
/* ------------------------------------------------------------------
---------- BASE LAYOUT ----------------------------------------------
------------------------------------------------------------------ */
If you have ato->Configure CSS & JS->CSS: Compress? set to 'YES' it will be followed by one long line of CSS searting with
HTML Code:
body{text-align:center;margin:0;padding:0;.....
5) delete everything from the end of the css to the end of the file
6) delete the text '<style type="text/css">' at the begining
7) delete the text '</style>' at the end
8) copy the remainder and paste it to the end of style.css
9) edit header.php and find lines 9-11 which should look like this
HTML Code:
<?php # if ( $bfa_ata['css_external'] == "External" ) { ?>
<link rel="stylesheet" href="http:<?php echo $bfa_ata['get_option_home']; ?>/?bfa_ata_file=css" type="text/css" media="all" />
<?php } ?>
replace these lines with
HTML Code:
<link rel="stylesheet" href="http:yourdomain.com/wordpress/wp-content/ataualpa/style.css" type="text/css" media="all" />
make sure the url is correct and save the file

That's it. NOTE: If you change any options in the theme, you will have to rebuilt the style.css for them to show up.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 29, 2010, 05:23 PM
Briggsm8
 
9 posts · Apr 2010
Brisbane
Thank You Juggledad. Very helpful you do a good job

just for anyone else you need to change the css to external and make sure you check the link in <link rel="stylesheet" href="http:yourdomain.com/wordpress/wp-content/atahualpa/style.css" type="text/css" media="all" /> to see if you can see the css in your browser.

Andrew.

Last edited by Briggsm8; Apr 29, 2010 at 06:57 PM.

Bookmarks

Tags
css, dynamic, header.php, remove

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
using dynamic header in header.php izzysanime Header configuration & styling 2 Feb 14, 2010 04:29 AM
[SOLVED] Custom header.php &amp; css: logo doesn't show dougc Header configuration & styling 4 Feb 1, 2010 11:00 AM
[SOLVED] Weird images dont change, when files changed in Dynamic Header?? Tamandua Header configuration & styling 1 Jan 23, 2010 10:28 AM
Print Style (css.php) is not SEO friendly aaron Atahualpa 3 Wordpress theme 0 Dec 18, 2009 12:12 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 09:25 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.