• Hi,

    I’m using Atahualpa 3.6.7, and I don’t like the styles it’s using for my h1, h2, etc. I can’t see how to edit the styles, and I also can’t see how to attach an external stylesheet – I would prefer the second option so that if I upgrade the theme, I won’t lose my new styles.

    It’s probably looking me right in the face, but I just can’t see it, so any help much appreciated!

    Many thanks,
    J.

Viewing 1 replies (of 1 total)
  • I don’t use Atahualpa, so there may be an easier way, but here is a method I have used on other themes.

    Add a function to functions.php that will be attached to the action ‘wp_head’:

    <?php
    function mam_head_action () {
      // Function to add lines into the generated header.
      // Use any conditional tags to insert into different types of template.
      // Anything echo'ed will be inserted verbatim.
      global $mam_global_head_action;
    
      echo '<!-- mam_head_action -->';
      if ($mam_global_head_action) {
        echo $mam_global_head_action;
      }
    }
    add_action('wp_head','mam_head_action');
    ?>

    Then, in header.php, or before calling get_header() in individual templates, set $mam_global_head_action to the text you want inserted.

    To keep from losing your changes, you should create a child theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Atahualpa 3.6.7 – How to change styles / attach an external CSS file’ is closed to new replies.