Jump to content

Noodleman.co.uk Store Theme


Recommended Posts

  • 8 months later...

In the Noodleman skin template main.php, find:

Near line 26:

<a href="{$ROOT_PATH}" class="main-logo"><img src="{$STORE_URL}/skins/noodleman_v6/images/noodleman/noodleman-logo.png" alt="{$CONFIG.store_name}"></a>

Change to:

<a href="{$ROOT_PATH}" class="main-logo"><img src="{$STORE_LOGO}" alt="{$CONFIG.store_name}"></a>
  • Like 1
Link to comment
Share on other sites

In the template content.homepage.php, for the first eleven lines of code:

Change to:

{if isset($DOCUMENT)}
<div class="row show-for-medium-up">
   <div class="small-12 columns">
<div id="content_homepage">
    {if $DOCUMENT.hide_title==0}<h1>{$DOCUMENT.title}</h1>{/if}
    {$DOCUMENT.content}
</div>
   </div>
</div>
{/if}

Do the same edit as you did for main.php to the template main.checkout.php.

 

Edited by bsmither
Link to comment
Share on other sites

  • 3 weeks later...

Hi All,

     I have downloaded this skin and what I'm trying to do is change the color scheme but I'm having trouble in understanding what CSS file is being used when. Could somebody please explain the processes that this skin goes through to create a css file in the cache directory, that's how I'm understanding it

Best Regards,

Peterp

Link to comment
Share on other sites

The latest version of CubeCart and the latest version of the Foundation skin (and skins derived from it's 'scheme') will combine all the CSS files into one file, then squeeze it to remove comments, line endings and other little manipulations. The combined and squeezed file is then written to the /cache/ folder. The skin template main.php is also rewritten to make the browser request the cached file.

(Note: this skin has not implemented a fix regarding debug mode. To implement it, see:
https://github.com/cubecart/v6/issues/2037

This will allow for much easier efforts to customize.)

The actual process of combining the css files is accomplished by a new Smarty plugin, /includes/lib/smarty/plugins/function.combine.php. Please examine the skin template file element.css.php. The plugin takes the list of CSS files, combines them, then writes the specified file.

The process of minifying the HTML (squeezing) is accomplished by an add-on post-processing filter, /includes/lib/smarty/filters/HTMLMinify.smarty.php.

We suggest that (after making the edits discussed above) during your customizing efforts, to set CubeCart to not to use any cache, and/or to enable debug mode (enter your local IP address in the adjacent field - www.whatismyip.com).

The order that the CSS files are combined is according to the list seen in element.css.php: the list members, followed by any files loaded via plugins or code snippets into $CSS, followed by the skin's sub-theme style file ('default', for example).

Link to comment
Share on other sites

Hi Brian,

                  Thankyou so very much for you explanation of how this all works, I have made the changes that you have suggested and that certainly allows me to customize much easier.

Once again your help is vry much appreciated

Best Regards,

Peterp

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...