Support » Plugin: Magento WordPress Integration » Trying to recreate Magento header

  • I’m trying to match the Magento styling and recreate my Magento header (links, logo, etc…) but am getting nowhere. I have the plugin installed just fine, and am trying to enter the some of the different block codes into the Twenty Twelve themes header.php file but nothing is working. Either the page goes blank or the header links will appear un-styled (listed vertically) at the top. That’s all I’m able to do. I hope you can give me some direction.

    http://wordpress.org/extend/plugins/magento-wordpress-integration/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jamesckemp

    (@jamesckemp)

    Make sure the CSS/JS files have been added, this should make sure the styling looks ok: http://magentowp.com/documentation/default-blocks/

    stevelucky

    (@stevelucky)

    Okay, so I added:

    <?php
    $head = get_block('head', false);
    echo $head->getCssJsHtml(); // All CSS and JS files defined in your Magento head
    echo $head->getChildHtml();
    echo $head->helper('core/js')->getTranslatorScript();
    echo $head->getIncludes();
    the_block('header');
    ?>

    before the </head> tag and that made the header appear like I wanted, but it’s caused all my text to center itself. Here’s what it looked like before the code: http://cl.ly/image/11273G2W3701
    and here’s what it looks like afterwards: http://cl.ly/image/0X1I3D2h0M07

    You can see how all the text is centered. Why would that be happening?

    Also, my header doesn’t reach all the way across the screen when I go to a blog page. It’s fine for blog posts, but not pages. Here’s a post (which is how it should look): http://cl.ly/image/0V0J0m3n1l2S and here’s a page: http://cl.ly/image/103g20263W1b. You can see that viewing a page puts the whole thing in a frame or something.

    stevelucky

    (@stevelucky)

    Nevermind. I think I got it all worked out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to recreate Magento header’ is closed to new replies.