(please don't refresh or leave the page, this shouldn't take long)
(please don't refresh or leave the page, this shouldn't take long)
1000+
Reviews!
1000+
Reviews!
SEARCH SITE
Favorites
Cart
SEARCH
1000+
Reviews!
Click To Call Us Now!
SEARCH
Favorites
Cart
SAVE THE DATES
WEDDING INVITATIONS
THANK YOU CARDS
EXTRAS
MAKE DEPOSIT
BLOG
MY CART
MY ACCOUNT
CONTACT US
Our Design Process
After receiving your order, our designers will create a digital proof based on the information you provide us within two business days. We will NOT print your order until you have received a digital proof and have given us your approval. You will have the chance to make changes to your design. You also have the option to see a printed proof before you have approved your order. There is a charge to print and mail these proofs. PLEASE NOTE that if you forego seeing a printed proof of your order all guarantees of reprints due to the way colors or pictures are printed will be voided and you will take full responsibility for any reprint costs. Final payment is due when you approve to print. Before doing so you will need to use the checklist provided with each proof to make sure there are no errors. We will not be responsible for any errors that have been approved. If you have additional questions, please contact us today.
X
Forgot Your Password?
Please enter your email below. You will receive a link to a create a new password via email.
Reset Password
X
close this message
Playing Around With Template Parts
The text below may seem like gibberish. See the code in sandbox-template-parts.php for what's really happening and what does and doesn't work...
What what whatinside partialsinside partialsXXXXXXXXXXX
trial html son
Giving something new
Giving something new
Giving something new
Giving something new
another trial...
A deposit page with a focus on cash
A deposit page with a focus on cards
A general Deposit Page
If $args['key1'] is set then 'val1' should display in the parentheses... ( )
First Name: None Provided
A general Deposit Page
If $args['key1'] is set then 'val1' should display in the parentheses... ( val1 )
First Name: None Provided
A deposit page with a focus on cards
A deposit page with a focus on cash
A general Deposit Page
If $args['key1'] is set then 'val1' should display in the parentheses... ( )
First Name: Luke


Lessons learned...
1. You can start with '/' or without, but no leading path, just assume you're in the theme_file_path_root
2. Don't end with .php, just the file name
3. You can also use 'includes get_theme_file_path() . '/sandbox/sb-template-parts/sb-template-part-one.php' to get the same results, but can't pass variables
4. Instead of 'includes get_theme_file_path() at the base you can also use get_stylesheet_directory but again, you can't pass variables
5. You can use includes __DIR__ . '/the-path-here/file.php' to use the path of the file your working from as the reference, but again you can't pass variables
6. get_template_part is WAY better than includes because of the second and third arguments
a. get_template_part("template-parts/deposit", "cash") will first look for deposit-cash.php but if it can't find it then it will open up deposit.php as the fallback
b. the second parameter can be a variable to make the template call dynamic, like get_template_part('template-parts/deposit', $payment)
c. passing in $args = array("key"=>"value") as the third paremeter will give you access to $args["key"] in the template that you call
Back to Sandbox