Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Forum: Fixing WordPress
    In reply to: CSS inheritance
    Thread Starter mrling

    (@mrling)

    Yes, I am using a child theme of twenty twelve. Also, I tried, #page .hfeed {margin-top: 0 !important;} ,but it didn’t work ??

    Thread Starter mrling

    (@mrling)

    Sorry for the late reply, been busy with work. I will try the sidebar plugin.

    Thread Starter mrling

    (@mrling)

    I apologize, the theme is a Twenty Twelve child.

    Thread Starter mrling

    (@mrling)

    Ahhhh…I understand now. Thank you for the help alchymyth! Now I just have to figure out how I can shorten my posts to small rectangles with a thumbnail and the excerpt.

    Thread Starter mrling

    (@mrling)

    Sorry, wrong folder, here is the edited content.php:
    https://pastebin.com/EFczfw55

    …using the code you mentioned above,which resulted with the scream error:
    https://pastebin.com/1K5HDK9G

    Thread Starter mrling

    (@mrling)

    Here is content.php https://pastebin.com/4dzXVBGG
    and….
    Here is the exact error message: https://pastebin.com/1K5HDK9G

    Thread Starter mrling

    (@mrling)

    Thanks Triptripper, it worked!

    Thread Starter mrling

    (@mrling)

    Shouldn’t I still be able to position it the way I want with both the rollover and rss divs nested inside the header? I believe the header would be only extending to the base of the rollover image if the rss icon was not there. I’m just confused because without resizing the rollover div to 100%, there should be plenty of space for the rss icon to fit next to it.

    Thread Starter mrling

    (@mrling)

    Eureka! it worked! Thank you WPyogi!!!! Also thanks for reminding me with your code that one should comment the original code out, I had forgotten that, though I suspect I would have been reminded the hard way later on. Check out my site with the new mouse-over feature on the header!
    Resolved!

    One final detail I was wondering, is I decided to copy all the header.php code into my child-theme. Is this a sloppy practice? Would it be best to just add the commented out and new code?

    Thread Starter mrling

    (@mrling)

    @wpyogi, the second image is the same, just using lighter (white) colored letters.

    Here is the code for the header.php in twenty-twelve theme:

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?><!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="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="page" class="hfeed site">
    	<header id="masthead" class="site-header" role="banner">
    		<hgroup>
    			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    			<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    		</hgroup>
    
    		<nav id="site-navigation" class="main-navigation" role="navigation">
    			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    		</nav><!-- #site-navigation -->
    
    		<?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) : ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    		<?php endif; ?>
    	</header><!-- #masthead -->
    
    	<div id="main" class="wrapper">

    Thread Starter mrling

    (@mrling)

    @wpyogi, the image I want to add the roll-over effect to is the header images that says my name on the top left.

    Thread Starter mrling

    (@mrling)

    @wpyogi, thanks for testing it out. I will try working on it some more tonight. However, as you mentioned, last night while looking through the header.php, lines 48-51, I was having a hard time trying to figure out how to implement the html with the php code that already controls the header. It will probably take me a lot of trial and error, so I’m hoping somebody will be able to share how to implement the roll-over html effect with the header.php.

    Thread Starter mrling

    (@mrling)

    Apparently there may be a way to create the hover effect using css image sprites. I will have to look more into this to make sure, and it won’t help me learn how to edit the wordpress html/php.

    Thread Starter mrling

    (@mrling)

    Glad you liked the painting, and thanks for looking into this with me danallenhouston. I found the file and looked at the code, but am still confused about where I should start editing and inserting the url’s for my header images…if I even have to do that. Unfortunately I’m not that familiar with php yet, so this may be a big challenge for me.

    Thread Starter mrling

    (@mrling)

    I dropped the wordpress folder and installed directly into /wamp/www/mysite, and now I am getting the site but no css styling? Have any clue why this is?

Viewing 15 replies - 1 through 15 (of 23 total)