Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter saltlick

    (@saltlick)

    for some extra background info, comparing the output of a standard page (the index page in this case) and a blog post from the Posts in Page, page, it seems that the Storefront theme/template is treating them both the same way:

    Index page, start of the main content:

    <article id="post-66" class="post-66 page type-page status-publish hentry">
    			<header class="entry-header">.....

    Blog page, one of the blog posts:

    <article id="post-1482" class="post-1482 post type-post status-publish format-standard hentry category-m*******">
    	<header class="entry-header">
    		<span class="posted-on">Posted on <a hre...

    How can I get the poxy storefront template to leave the blog posts alone so that I can style them independantly of the rest of the site?

    Greg,

    I’ve just been through this over the last few days – just make a backup of the original file and then edit the thing in the parent template, making sure to make another backup/copy of your newly edited file incase you update the storefront template and overwrite it, destroying all your customisations.

    My experience was this: https://wordpress.org/support/topic/urgent-please-trying-to-move-site-logo-above-header-move-nav-below-header/

    What I wanted to do was get the logo and nav outside or OFF of the header image.
    If you can’t edit the code just yet, then you might be limited to just using off the shelf plugins, but that didn’t help me and are a step backward in my opinion.

    Thread Starter saltlick

    (@saltlick)

    @PatronisingArseHat: Thank you very much to going to all the effort of creating a youtube video just to patronise me, I’m flattered. I especially liked the way that your cute little Merkin voice sounds while you condescend to my level and empower me. No really, thank you…

    As someone new to wordpress, but not at all new to writing code and working with many other CMS’s, I was after some advice that would get around the issue of the storefront template making things extremely complicated for people who are comfortable working with code.

    The standard answers seem to be either: “get a plugin” or “create a child theme” but that doesn’t solve the problem of the parent theme/template loading WP elements in the wrong place for my purposes.

    I assumed (wrongly I think) that this was a common problem, but clearly you wordpress fans either just live with it, or find another template that someone else has made?

    So, the solution is to go against everything that you wordpress regulars say – “don’t edit the parent theme”, “just hide everything you don’t want with CSS” & “create a child theme” etc. So to get the logo image OUTSIDE of the header <DIV> tag, it needs to be cut out and put somewhere else – Guess what Brad? PowerPack doesn’t do that. It only moves that stuff around INSIDE the header div tag, which is great if that’s what you want from an ametuer tool that requires no understanding of the background code.

    After I posted my question, I played with the powerpack toy for another hour or two in the header and after I’d rearranged the order of all the stuff (still) inside the header, wrecked my menu layout and was ’empowered’ to achive nothing, I reset all of that crap and played with the code inside the “storefront-template-hooks.php” file:

    /**
     * Header
     *
     * @see  storefront_skip_links()
     * @see  storefront_secondary_navigation()
     * @see  storefront_site_branding()
     * @see  storefront_primary_navigation()*/
    
    add_action( 'storefront_header', 'storefront_skip_links',                       0 );
    add_action( 'storefront_header', 'storefront_site_branding',                    20 ); /*Don't call this crap in the final template -> */
    
    add_action( '<strong>storefront_header2</strong>', 'storefront_site_branding',                    20 ); /* use THIS (header2) instead */
    
    add_action( 'storefront_header', 'storefront_secondary_navigation',             30 );
    add_action( 'storefront_header', 'storefront_primary_navigation_wrapper',       42 );/*Ignore*/
    add_action( 'storefront_header', 'storefront_primary_navigation',               50 );/*Ignore*/
    add_action( 'storefront_header', 'storefront_primary_navigation_wrapper_close', 68 );/*Ignore*/
    
    add_action( '<strong>storefront_header3</strong>', 'storefront_primary_navigation_wrapper',       42 );/*Use this*/
    add_action( '<strong>storefront_header3</strong>', 'storefront_primary_navigation',               50 );/*Use this*/
    add_action( '<strong>storefront_header3</strong>', 'storefront_primary_navigation_wrapper_close', 68 );/*Use this*/
    

    OK, so now the child theme can get call “storefront_header”, “storefront_header2” or “storefront_header3” separately, and they can be moved around independantly of each other the in child theme Theme Header (header.php) file.

    So my (CHILD) header.php now has three header sections, each containing (in order of appearance):

    1: Site logo and my own social icons stuff
    2: Site Banner image/s – clear of EVERYTHING and no other element over them
    3: Site primary navigation

    I also used the lilea media Child theme Configuarator, but found this to be quite flakey when I was in and out of editing the code directly, and it’s a good job I had a complete copy of all the working code for my template in Kommodo, as every now and again CTC would just revert my template to an old version, destrying my changes in the process!
    Lilea Child theme configurator has its uses but don’t rely on it 100% – make sure you have a working backup at every step of you work with the template.

    And what is it with everyone saying to just set the undisred elements of your templates to “Display:none;” in the CSS? In what world does that constitute good practice and clean, efficient code? If you don’t want something showing up on your site, just remove it so that the webserver doesn’t have to process it (and the extra bit of CSS to now hide it) and maybe the wordpress script will run a bit faster…

    Anyway, rant over…
    And brad, please feel free to record and post another youtube video – I do love being mocked by inhabitants from the colonies in their funny merkin accents, there’s nothing more entertaining…

    Thread Starter saltlick

    (@saltlick)

    Thanks for your reply Leah, unfortunately it’s nothing to do with CSS and the issue is now resolved.

    • This reply was modified 9 years, 3 months ago by saltlick. Reason: sperring
    Thread Starter saltlick

    (@saltlick)

    Nothing has changed – I asked my new host to upgrade and they said they couldn’t as it’s a shared server.

    WooCommerce gave the version as 1.0.1e which meets/exceeds the minimum specs, but the paypal express plugin gave the error at the top of the dash board: plugin updated = Error vanished.

    Thread Starter saltlick

    (@saltlick)

    How would you know what version of PHP I have? As stated, the version of OpenSSL I have meets the requirements.

    As it happens it doesn’t show an error any more, since I updated the plugin, so there was presumably something wrong with the way it reported the OpenSSL version that is now fixed.

    I have to say this is the most interaction I’ve had with anyone from Woo – it’s a shame you’re not on the helldesk answering support tickets…

    Thread Starter saltlick

    (@saltlick)

    Thanks for your reply Mike. It was a different thread – I submitted a ticket in fact and the response to it has so far been dissapointing.

    My ticket is about openSSL errors though (My hosts meet the requirements with openssl 1.0.1e, but the error persists) and I have just updated the paypal express plugin (update just arrived) and now the issue has gone away. It would be nice to have had a bit of commmunication about the impending fix in the update though – letting us plebs know what’s going on helps smooth tensions.

    Thanks for commenting to try and resolve the issue, at least it proves someone at Woo is keeping an eye out 🙂

    Well not a great deal of support going on here… Good luck everyone 🙁

    I’ve had this issue with 1&1 too in the last month, and had so many support calls with them that it was just ridiculous. In the end the most they would commit to was that the upgrades to OpenSSL would be finished “this year”.
    I’ve now switched hosts to EZPZ and I have openSSL 1.0.1e but I STILL have the error message. What’s going on?!

    What EXACT minimum version is required?

    Thread Starter saltlick

    (@saltlick)

    Don’t worry – I found the soloution in creating a new menu in place of the primary.

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