Git Product home page Git Product logo

shopify-mpb's Introduction

Shopify Monster Page Builder

This is a simple builder that will allow you to build monster pages quickly with a few drag and droppable widgets

Installing

Install the page template

page.monster-page-1.liquid

Install the section

monster-blocks.liquid

Install the snippets

monster-block.liquid
monster_content_block.liquid
monster_cta_row.liquid
monster_fifty_fifty.liquid
monster_hero_block.liquid

Install the styles. the contents of this file must be placed in a .scss or .scss.liquid file. a .css file will not work. If there is no .scss file in the theme, create one and add it in the head.

This file can also be uploaded individually, just remember to reference it in the header if you take this approach.

monster_styles.scss
(the contents of this file can just be copied to the bottom of any .scss stylesheet. .css will not work)

once all files have been added to the theme you just need to add this snippet of code to theme.liquid file above the closing head tag and above all other stylesheets in the theme. This will ensure that the header/ footer on the monster pages doesn't get messed up.

This part only needs to be done if the theme isn't MadSections 1.7 or MadSections 2.0, or if the theme isn't using Bootstrap 4.

  {% assign template_name = template.suffix | split: '-' %}
  {% if template_name[0] == 'monster' %}
  	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  {% endif %}

This will ensure that the page that is using the builder will have bootstrap4 available for the grid.

Once these steps have been completed, you will have the monster page builder installed on a single template which can be used on one inner page.

To do additional inner pages, you will need to create a new template for each inner page.

To do this, you will need to duplicate and rename the template (ie monster-page-2 ) Then paste in the same code as the original monster page template incrimenting the reference to the section file by one (ie monster-blocks-2).

Then create a new section and name it 'monster-blocks-2' and paste in the same code from the original monster blocks section, but change the name of it (https://madshot.net/b08fe6fc7f3e.png) to "Monster Block 2"

Rinse and repeat, incrementing the number by one each time for the template name, section schema name, section file name, and section reference

Updates 4-20-2020

- Changed some labels in the Monster Page builder to make more sense
- Added horizontal padding to fifty fifty row and content rows

shopify-mpb's People

Contributors

mrhahn avatar

Watchers

 avatar

Forkers

jssellars

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.