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.

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


    Make sure the CSS/JS files have been added, this should make sure the styling looks ok:



    Okay, so I added:

    $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();

    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:
    and here’s what it looks like afterwards:

    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): and here’s a page: You can see that viewing a page puts the whole thing in a frame or something.



    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.