Title: Phaederkiel's Replies | WordPress.org

---

# Phaederkiel

  [  ](https://wordpress.org/support/users/phaederkiel/)

 *   [Profile](https://wordpress.org/support/users/phaederkiel/)
 *   [Topics Started](https://wordpress.org/support/users/phaederkiel/topics/)
 *   [Replies Created](https://wordpress.org/support/users/phaederkiel/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/phaederkiel/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/phaederkiel/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/phaederkiel/engagements/)
 *   [Favorites](https://wordpress.org/support/users/phaederkiel/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding child categories kills my if (in category)](https://wordpress.org/support/topic/adding-child-categories-kills-my-if-in-category/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/adding-child-categories-kills-my-if-in-category/#post-5797674)
 * maybe [http://codex.wordpress.org/Template_Tags/in_category](http://codex.wordpress.org/Template_Tags/in_category)
   this is a solution.
    here it tells me that
 * > For example, if you have a post assigned to the subcategory Fruit → Bananas
   > and not the category Fruit, the Fruit category archive will show the “Bananas”
   > post, but calling in_category(‘fruit’) for that post always returns false.
 * but it tells me too that I could just note all child categories. I tried this
   already. I had <?php if ( in_category( 5,14 ) ) { ?> where 14 is a child category
   of 5. It did not work at all.
 * This post_is_in_descendant_category function he shows further down sounds like
   what I need, but I get all kind of errors when I put the shown code into my functions.
   php (which has nothing else in it, was created for that purpose).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Neither Width nor Max-width work dynamically for the Images within the post](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/#post-5770221)
 * For completeness sake:
 * here i found the snippet that changes that.
    [http://wordpress.stackexchange.com/a/37768/17599](http://wordpress.stackexchange.com/a/37768/17599)
 * more specifically:
 *     ```
       img[class*="align"],
       img[class*="wp-image-"] {
           height: auto; /* Makes sure images with WordPress-added height and width >attributes are scaled correctly */
       }
       ```
   
 * I do not know if I need the rest of the snippet too, will test.
 * I still do not understand why I needed to do that. Should not my code at #inhalt
   img be more specific and later and thus overwrite the wordpress formating? I 
   even tried it with !important, nothing happened.
 * perhaps someone can still enlighten me.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Neither Width nor Max-width work dynamically for the Images within the post](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/#post-5770219)
 * I kinda found a solution myself:
 * After discarding the possibility that my method was wrong (works everywhere else);
   Or that selection of the pictures did not work (other methods work with the selection),
   I kinda deduced that the problem lies in the Pictures itself.
 * The only way that the pictures in the post differ from the other pcitures on 
   the site is that they are added by wordpress.
 * **So I looked at my Edit Post Menu and righ-klicked the picture and found that
   there is a percentage size option (which doesnt do anything) and that there is(
   under advanced options) a field that gives tells us about the size of the picture
   used.**
 * I put 100% in both height and width, and now everything works as I wanted.
    **
   So that means that for some reason my CSS is not able to overwrite some of the
   formating WP does on my pictures. Is there any way to change that?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Neither Width nor Max-width work dynamically for the Images within the post](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/neither-width-nor-max-width-work-dynamically-for-the-images-within-the-post/#post-5770216)
 * What is really weird is that I seem to have the correct place to change the images
   size, since I can change the width there unresponsively;
 * and on the other hand I use a method which works everywhere else in the code.
   So what do I do wrong? I do not understand.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [very bare Custom Theme, Galleries do not work, lightbox hangs low](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/#post-4618145)
 * I took a long hard look at BlankSlate. It is great, but it still is kinda far
   too complicated for what i want.
 * But I just did some trying and was able to pinpoint my problem area (it was the
   header) and “solve” my problem…
 * I removed everything I was sure i did not need from the 2013 theme header and
   put it into mine:
 *     ```
       <?php
   
       ?><!DOCTYPE html>
       <!--[if IE 7]>
       <html class="ie ie7" <?php language_attributes(); ?>>
       <![endif]-->
       <!--[if IE 8]>
       <html class="ie ie8" <?php language_attributes(); ?>>
       <![endif]-->
       <!--[if !(IE 7) | !(IE 8)  ]><!-->
       <html <?php language_attributes(); ?>>
       <!--<![endif]-->
       <head>
       	<meta charset="<?php bloginfo( 'charset' ); ?>">
       	<meta name="viewport" content="width=device-width">
       	<title><?php wp_title( '|', true, 'right' ); ?></title>
       	<link rel="profile" href="http://gmpg.org/xfn/11">
       	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
       	<!--[if lt IE 9]>
       	<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
       	<![endif]-->
       	<?php wp_head(); ?>
       </head>
       ```
   
 * this works. The Plugin does what i expect it to do.
    Then, i looked at the Blank
   slate header:
 *     ```
       <!DOCTYPE html>
       <html <?php language_attributes(); ?>>
       <head>
       <meta charset="<?php bloginfo( 'charset' ); ?>" />
       <meta name="viewport" content="width=device-width" />
       <title><?php wp_title( ' | ', true, 'right' ); ?></title>
       <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
       <?php wp_head(); ?>
       </head>
       <body <?php body_class(); ?>>
       <div id="wrapper" class="hfeed">
       <header id="header" role="banner">
       <section id="branding">
       <div id="site-title"><?php if ( ! is_singular() ) { echo '<h1>'; } ?><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( get_bloginfo( 'name' ), 'blankslate' ); ?>" rel="home"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></a><?php if ( ! is_singular() ) { echo '</h1>'; } ?></div>
       <div id="site-description"><?php bloginfo( 'description' ); ?></div>
       </section>
       <nav id="menu" role="navigation">
       <div id="search">
       <?php get_search_form(); ?>
       </div>
       <?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>
       </nav>
       </header>
       <div id="container">
       ```
   
 * This works too.
 * Now i am pretty sure I do not need the browser distinctions of the WP2013, and
   i have no need at all for a wrapper in the header which blankslate has.
 * Can anyone give me some more tips what i can safely cut from my code? at the 
   moment it looks like this:
 *     ```
       <!DOCTYPE html>
       <html <?php language_attributes(); ?>>
       <head>
       	<meta charset="<?php bloginfo( 'charset' ); ?>">
       	<meta name="viewport" content="width=device-width">
       	<title><?php wp_title( '|', true, 'right' ); ?></title>
       	<link rel="profile" href="http://gmpg.org/xfn/11">
       	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
       	<!--[if lt IE 9]>
       	<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
       	<![endif]-->
       	<?php wp_head(); ?>
       </head>
       ```
   
 * what i really like in the blankslate header is the name of the page in the tab.
   But i am not able to single it out.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [very bare Custom Theme, Galleries do not work, lightbox hangs low](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/#post-4618116)
 * I will obviously look at that theme.
    But i would have like to learn how to mkae
   the theme alone. I feel very uncomfortable changing around on things i do not
   understand int the first place…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [very bare Custom Theme, Galleries do not work, lightbox hangs low](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/#post-4618110)
 * No, nextgen does not work yet. When I activate it, it keeps showing no lightbox
   at all. And I do not understand what to do about my “invalid” markup. I assume
   that the problem is what is described under [http://validator.w3.org/docs/help.html#faq-doctype](http://validator.w3.org/docs/help.html#faq-doctype)
   under section f, but how to fix that is completely above my understanding.
 * What to do? What is missing with my theme what the others have?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [very bare Custom Theme, Galleries do not work, lightbox hangs low](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/#post-4618101)
 * I am not sure if I could resolve the problems with the other problems, but the
   low lightbox was resolved when i declared my doctype.
    Which is really strange,
   because i saw dozens of pages with the problem, (none helped any) but nowhere
   the doctype was mentioned.
 * Before we call this resolved, i am going to try if the other plugins behave now.
 * Unfortunately i could not resolve all my invalid markup. I took the code from
   a tutorial, and from wordpress.org. So it is quite unlikely that there are so
   many real errors. More likely is that i lack something more at the beginning 
   of the page. Do you know what?
 * I am very thankful.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [very bare Custom Theme, Galleries do not work, lightbox hangs low](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/very-bare-custom-theme-galleries-do-not-work-lightbox-hangs-low/#post-4618095)
 * sorry, i had the simple lightbox plugin deactivated and one of those that do 
   not work at all activated.
 * I just changed it to simple lightbox.
 * Albeit, i am much more interested in a solution that makes all of the plugins
   work, especially nextgen would be nice to have.
 * Something ought to be missing in my code.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [weird things happen to the wrapper when I change the sidebar](https://wordpress.org/support/topic/weird-things-happen-to-the-wrapper-when-i-change-the-sidebar/)
 *  Thread Starter [Phaederkiel](https://wordpress.org/support/users/phaederkiel/)
 * (@phaederkiel)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/weird-things-happen-to-the-wrapper-when-i-change-the-sidebar/#post-2705954)
 * oof. I hoped that using a tutorial would give me some understanding, not increase
   my worries further…
 * can you tell me a good tutorial to learn from?
 * Thank you for your clarification on float and absolute positioning.
 * Does anyone has any idea why the wrapper changes its place when i change things
   in the sidebar?

Viewing 10 replies - 1 through 10 (of 10 total)