WordPress.org

Ready to get started?Download WordPress

Forums

Magento WordPress Integration
Trying to recreate Magento header (4 posts)

  1. stevelucky
    Member
    Posted 1 year ago #

    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/

  2. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. stevelucky
    Member
    Posted 1 year ago #

    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.

  4. stevelucky
    Member
    Posted 1 year ago #

    Nevermind. I think I got it all worked out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.