WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Simple Headers
[resolved] Sample Child Theme (8 posts)

  1. fwchapman
    Member
    Posted 3 years ago #

    This plugin does not currently support the free Sample Child Theme. Users who want to add support for this theme can do so in three easy steps:

    1. Edit the following file:
      genesis-simple-headers/main.php
    2. Find the following line:
      switch ($current_theme) {
    3. Insert the following code immediately afterwards:
      case 'Sample Child Theme';
      	DEFINE ( 'HEADER_IMAGE_WIDTH', '300' );
      	DEFINE ( 'HEADER_IMAGE_HEIGHT', '80' );
      	DEFINE ( 'THEME_CSS_VALUE', '.header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a' );
      	DEFINE ( 'BACKGROUND_TYPE', 'background' );
      break;

    Best wishes,

    Fred Chapman
    [ Signature moderated. ]

    http://wordpress.org/extend/plugins/genesis-simple-headers/

  2. fwchapman
    Member
    Posted 3 years ago #

    P.S. Be sure to save your changes to the file, of course!

  3. John Hawkins
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the reminder, Fred!

    I added support for the sample child theme to the plugin (version 1.0.1). However, if you upgrade to Genesis 1.6, depending on which child theme you are using, you may not need this plugin at all as the StudioPress folks are adding in support for custom headers. An easy way to to tell is if your appearance tab looks like this, then just deactivate the plugin and you should be set.

    If you have any questions, please let me know!

  4. fwchapman
    Member
    Posted 3 years ago #

    John, thanks for your speedy reply and code fix!

    I have Genesis 1.6.1 and usually use a premium child theme, but I wanted to experiment with the Sample Child Theme to see what it could do. It's challenged me to delve deeper into CSS, and I feel empowered by it! :)

    The WordPress dashboard is telling me that Version 1.0.1 of your plugin is available, but I can't seem to install or even download the update. Does it take a while for updates to be available?

    Thanks again,

    Fred

  5. fwchapman
    Member
    Posted 3 years ago #

    P.S. I just tried the update again, and it worked fine this time!

  6. mbeneteau
    Member
    Posted 3 years ago #

    mm, this plugin is a brilliant idea, but more-or-less useless in its current form, because most of the Genesis child themes need changes in css for header widgth and height, and if you are inside the stylesheet anyway, it's a lot easier to work there rather than have to modify the code in the plugin. What needs to happen IMHO is that the plugin needs to read the header width and height from the stylesheet. Now that would be a killer app. I run beginner wordpress classes and this is what they need, trust me.

  7. John Hawkins
    Member
    Plugin Author

    Posted 3 years ago #

    @mbeneteau - Based on which theme you currently have active, the plugin sets a specific height/width for the header which is the proper size for the active theme.

    This plugin is for people who probably don't know how to edit the CSS manually and are looking for the easy way to modify the headers. It's not an overly advanced plugin. It does what it says and not much else. Sorry it's not exactly what you are looking for.

  8. mbeneteau
    Member
    Posted 3 years ago #

    John,
    Yes you are right, sorry for being overly critical, "useless" is too strong a word for sure. This is actually a liability of StudioPress themes that loading a custom header (in particular a full-width header which is what most sites will require) is somewhat technical, I know because I teach this stuff, was really hoping for some way to make this available to the people as it were, perhaps later

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic