Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

CSS and Header


  #1  
Old May 3, 2009, 08:52 AM
pctechb
 
7 posts · Apr 2009
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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,768 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



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 01:15 PM.


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