Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

CSS and Header


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 3, 2009, 08:52 AM
pctechb
 
7 posts · Apr 2009
CSS and Header

I am confused about what to remove from the header.php file to get rid of the hundreds of lines of extra code in my page source.

I view the source on my working page, copy the style beginning with <style and ending with </style> and add this to the bottom of the CSS file. But when I remove that from the header.php, again, beginning with <style> and ending with </style> I get header errors.

Can you elaborate what to add and remove from the CSS and header.php? The site is setup how I want, but the page size is huge. Thanks.
  #2  
Old May 3, 2009, 01:58 PM
juggledad's Avatar
juggledad
 
22,315 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
header.php is code that generates the html for the heaqder area of the page. You should not edit that unless you know PHP and what you are doing.

The source code of your page is dynamically generated each time you visit the site and depending on the widgets and plugins you have installed, the images audio, video etc that you may have in a post. If you choose to have a sidebar on one page, but not another, the code generated will be different.

How do you know that the hundreds of lines of code are extra?

(also give the url for your site so someone might look at it)
  #3  
Old May 3, 2009, 03:25 PM
pctechb
 
7 posts · Apr 2009
Hey, Juggledad. Referencing external stylesheets has been mention here before http://forum.bytesforall.com/showthr...css+header.php
And I actually managed to do it once before but can't recall exactly what I removed. The resulting size of the page is much smaller and loads faster.

Having used Dreamweaver for several years it was easy to link to an external CSS file. I'm just not sure how to do it here as explained in the other posts.
  #4  
Old May 3, 2009, 06:01 PM
juggledad's Avatar
juggledad
 
22,315 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
there are two <style> ...</style> sections in header.php I think you just want to remove them both, just not the lines between. Remember if you ever update the theme or reload the theme code, you will have to perform the edit again.

Last edited by juggledad; May 3, 2009 at 06:04 PM.
  #5  
Old May 5, 2009, 06:18 PM
Flynn's Avatar
Flynn
 
3,766 posts · Oct 2008
Munich, Germany
It starts with

PHP Code:
<style type="text/css">
body {
    <?php echo $bfa_ata['body_style']; ?>
    }
and ends with (similar to this in older theme versions

PHP Code:
    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>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
3.33 > 3.4 It can't find CSS OzBOz New Versions, & Updating 27 Jul 15, 2009 11:45 AM
Css Script Help I think. joestyer Atahualpa 3 Wordpress theme 2 Mar 10, 2009 03:34 PM
CSS not validating for me msjones Atahualpa 3 Wordpress theme 2 Mar 4, 2009 11:56 PM


All times are GMT -6. The time now is 04:21 PM.


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