$99 Websites + Website Design 5505 Sun Harbor Road Panama City, Florida 32401 850-329-3425 http://website99.us https://www.google.com/maps/place/$99+Websites+%2B+Website+Design/@30.1842909,-85.7322502,15z/data=!4m5!3m4!1s0x0:0x61b35c1bb4fa6eac!8m2!3d30.1842909!4d-85.7322502
Friday, May 31, 2019
This Is What You Need to Know to Succeed as a First-Time Entrepreneur
6 Infallible Signs Somebody Is About to Say Something Stupid
Businesses That Give Back Enjoy A Competitive Advantage
What It Means to Be a Late Bloomer in a World Obsessed With Early Achievement
3 Questions Every Candidate Should Ask Before Accepting a Job Offer
6 Airport Hacks to Make Business Travel a Breeze During the Busy Season
How Smart Brands Steal Ideas From Other Industries to Improve Their Customer Experience
3 Easy Ways to Improve Your Leadership Communication Skills and Motivate Your Team
2 Simple Ways to Get More People Talking About Your Brand
Your Guide to Highly Addictive Product Marketing, According to Slack
How To Automate Your Social Media Marketing Without Losing Your Mind
How This Startup Plans To Disrupt The Consumer-Isolating Credit Card Industry
Coffee Is a Superfood. Tea Not So Much
Why Embracing Burnout Will Make You a Better Leader
9 Things to Never Do On a Flight When Traveling for Business
From Near-Failure to $1 Billion Empire: Trek Bicycles
With More Contractors Than Employees, Google Risks Massive Lawsuit Under California Law
Are You Ready to Be Your Own Boss? This Quick Quiz Developed by 3 Business School Professors Will Tell You
3 Scientifically Proven Ways to Raise Your Kids' IQ and Improve Their Success That Cost Almost Nothing
An Insider's Guide to Detroit, Everyone's Favorite Underdog City
Want to Make Your LinkedIn Profile Really Stand Out? New LinkedIn Research Shows You How
Dying To Quit Your Job? 5 Boxes to Check Before You Do
Richard Branson, Sheryl Sandberg, and Elon Musk Do This to Have Remarkably Effective Meetings
Congratulations on Selling Your Startup. Get Ready for a Demotion and an Identity Crisis
7 Smart Networking Tactics That Will Make You a Much Better Networker
Thursday, May 30, 2019
4 Ways to Prepare For and Make the Most Out of Your Short Layover
5 Key Assets that Automatically Maximize Your Business Value
How to Build a Superfan Base Like Apple
Smash Mouth Picked a Fight with Rapper and NBA Superfan Drake. It's a Surprisingly Strong Business Move
3 Productive Things You Can Do During Long Layovers
In Just 8 Words, NBA Star Draymond Green Perfectly Explained the Mindset You Need to Be Successful
The North Face Just Did The 1 Thing No Marketer Should Ever Do
Amazon Has a New Product -- What You Need to Know First
Ikea Boldly Fights Back Against Amazon With a Genius New Way to Shop for Furniture
New To SEO? How To Boost Your Rankings With These 4 Easy Tips
According to Science, You Should Schedule Your Focus Time Between These Hours
Mark Cuban's Advice for Recent Graduates: Your Soft Skills Are More Important Than Coding
Want To Be Effective In Conversations? This Exercise Will Help
How to Utilize Failure and Rejection to Move Forward as a Young Entrepreneur
How to Take Advantage of the Value Older Employees Add to the Workplace
This Simple Technique Will Significantly Improve Your Communication
Apple and Google Oppose Letting The Government Snoop on Your Private Messages
While Every Startup Doesn't Need a Business Plan, Every Startup Does Need This
XFactor Launches Second Fund to Back 53 Women Entrepreneurs
Why It May Be Time To Drop The iPhone And Get the Google Pixel 3a For Your Business
The Value True Friendships Can Bring Into the Workplace
You Aren't Getting Enough Sleep for These 3 Big Reasons According to a New Sleep Study
You're Probably Using Your To-Do List Wrong
Stressed Out? A New Study Says You Should Go Play in the Dirt (But Not Why You Think)
Inc. Masters: The Only Network for America's Most Successful Entrepreneurs
Charlie Munger and Warren Buffett Use This Mental Model to Stay Focused on Their Strengths
Why Being Perfect Will Actually Screw You Over
Jeff Bezos Just Pinpointed What Makes the Best Entrepreneurs in 4 Brilliant Words
If You're Too Busy for These 7 Things, You Need to Change the Way You Lead
A Lesson From Racing Legend Mario Andretti: Produce Value Through Your Work, and Passion Will Follow
Jeff Bezos' Motto Is a 2-Word Latin Phrase That Perfectly Captures His Approach to Success
I Tested LinkedIn's 5-Step New Employee Onboarding Strategy. Here's What I Found
Mario Andretti On How Passion Led To 886 Professional Races and a 35-Year Career
The Bad News About Being the Bearer of Bad News (Surprise: There's a Right Way and a Wrong Way)
46 of the 50 Most Popular TED Talks Have This 1 Thing in Common
Steph Curry's 6-Step Process to Prepare Himself to Perform His Best When the Pressure is On
How This Company Turned Its Cat Clock Into an Icon That Has Endured for 87 Years
Elon Musk An't All that Great at Motivating Employees
With 7 Short Words, Steve Jobs Gave This Apple Employee a Brilliant Lesson in Leadership.
Wednesday, May 29, 2019
This Is The Greatest Threat Of AI, And It's Not What You Think
Confidence vs. Humility. Which is More Important in a Job Interview?
These Are the Hottest Career Opportunites in Content Marketing
It's Still Just as Creepy, But Now You Can Control Your Portal by Facebook From Your iOS or Android Smartphone
5 Ways Business Travelers Can Keep Their Accommodations Safe
China Is Threatening a Move That Could Be Disastrous for Major American Tech Companies Like Apple and Tesla
5 Ways to Boost Your Happiness in Just 15 Minutes, According to a Harvard Researcher
4 Advantages Extroverts Consistently Have Over Introverts at Work, According to a New Study
Can't Sleep? New Science Has Zeroed In On the Source of Your Problem
Apple Just Updated a Product No One Even Knew It Still Sold
Before Sending Your Next Customer Satisfaction Survey, Ask Yourself This Simple Question
LinkedIn's New 30-Second Resume Hack
Complaining Might Make You More Productive, If You Ask These 4 Questions
LinkedIn, SAP, and Calm Share 3 Tips on How to Start a Company Mindfulness Program
9 Easy Ideas to Improve Your Mental Health as an Entrepreneur
Why New Protocol Marconi Is Restructuring Core Internet Technology
With These 8 Words, Magic Johnson Explains the Single Reason He Quit the Lakers
The 4 Best Ways to Find a Mentor to Grow Your Business
Why You Shouldn't Give Up Equity in Your Company (Despite Everything You See on 'Shark Tank')
5 Things You Should Be Doing as CEO to Help Your Business Grow
Want to Raise Mentally Strong Kids? Stop Saying These 5 Things
New Gallup Data Finds Only 1 in 4 Employees Believe in Their Company Values. This Strategy Can Change That
4 Easy Tips for Recruiting in a Tight Job Market
11 Social-Media Marketing Tools to Bookmark Now
The 9 Best iPhone Apps For Travelers in 2019
4 Tips on How to Unplug for the Health of Your Business
28 Daily Habits of the Most Likable People
'Jeopardy!' Champion James Holzhauer Has Won Over $2.2 Million By Never Being Foolish Enough to Do 1 Thing
The Only Metric You Shouldn't Try to Grow When You Build a Business
Want to 'Wow' Your Customers? Keep Your Promises
How to Generate High-Quality Leads Using Automation
Rewriting Economics: How to Live Well, within Planetary Boundaries
This Founder and Mom of 3 Children Shares Her Best Tips for Saving Time
The World Health Organization Officially Recognizes Burnout as a Medical Diagnosis. Here's 1 Way to Avoid Burning Out
Stuck in a Creative Rut? Try These 4 Simple Tips
How to Recover After a Huge Mistake at Work
Why You Will See More Yellow Cars Soon
How to Determine Whether a Low Performer Has Potential
5 Steps You Need to Get Your Culture Right From Day 1
Amazon and Jeff Bezos Haven't Spoken About Their Quiet Move Into This Massive Industry (Until Now)
Magic Johnson Called 'Fear Monger' By Staffers as the Tale of the Lakers Organization Gets More Toxic
Want a Happier Marriage? Do Any of These 6 Rare Things for Each Other Often, Says Science
How to Know Whether You'll Succeed as a Leader Before You Take the Leap
Boulder, Colorado, May Be the Most Relaxed City in America, Thanks to These Founders
This Is the Best Day of the Week to Fire an Employee, According to HR Experts
This Simple Time Formula Could Boost Your Business Growth
Framebridge Founder Credits Her Experience Working In the Obama Administration For Startup's Success
Feeling Decision Fatigue? Here's How to Overcome It to Increase Your Willpower Right Now
Exhausted and Hate Your Job? You Might Have This Work-Related Medical Condition. (Doctors Debated It for 45 Years. They Just Finally Agreed It's Real)
5 Tips for Turning Your Company's YouTube Channel Into a Cash Cow
McDonald's Uses This 1 Thing to Ensure That Even Their Teenagers Deliver An Outstanding Service
3 Reasons You Didn't Get That Second Job Interview
Apple Just Announced a New iPod Touch. 3 Reasons Why You Should Buy It--And 1 Big Reason Not To
The Absolute Best Way to Beat a Mid-Afternoon Energy Slump
Tuesday, May 28, 2019
4 Strategies for Improving Your Customer's Experience Without Increasing Your Costs
Here's Everything You Need To Know About Your Credit History and How It Affects Your Credit Score
Your iPhone is Sharing Personal Information at an Alarming Rate, Despite Apple's Promise to Guard Your Privacy
How to Save 5 Minutes in Every Meeting (and Still Build a Connected Team)
Have a Great Idea for a Business? Here's What You Need to Successfully Execute It
3 Ways to Provide Excellent Social Media Customer Service
You Don't Need to Be Everywhere Online. Here's How to Choose the Right Marketing Channels For Your Business
This 72-Year-Old Company Put Relentless Focus on Improving These 2 Things for 12 Years, and Profits Quadrupled
Master Your Mornings: 4 Easy Ways to Crank Up Your Productivity--and Increase Your Joy
Make Sure New Hires Are a Good Fit: 7 Things to Look For
Will China Ban the iPhone? Huawei's CEO Just Responded Perfectly
How to Build Rapport with Remote Staff Without Overstepping
This Guy Took Yale's Most Popular Class Ever for Free. Learning 1 Key Habit Made Him Happier
The One Business Function Most Entrepreneurs Mistakenly Ignore
How to Keep Cool During Tough Conversations at Work
Good Customers Complain. Here Are the 3 Things You Should Be Listening To
Ten Marketers Who Are Crushing It with Live Video
Burnout Was Just Named an Official Medical Condition (You Might Have It If 3 Things Are True)
These Are the 8 Best MacOS Apps for Working Remotely
Learning from Apple's AirPower Failure
3 Hiring Secrets That Helped Kendra Scott Grow Her $500 Project Into a $1 Billion Company
If You Want to Make Better First Impressions, Don't Forget These 8 Words
How to Tell If Your Business Dream Has a Chance of Succeeding
Why--And How--To Prioritize Weekly One-to-One Meetings
What This Comedian Turned NYT Bestselling Author Taught Me About Business
If You Say Yes to Any of These 10 Questions, Science Says You Definitely Learn Faster Than Average
How to Stay Mentally Strong When You're Dealing With Uncomfortable Emotions
Your Office Design Should Follow This New Modern Workplace Approach
Don't Let This Bad Leadership Habit Stunt Your Team's Growth
Industries Most Vulnerable to Be Disrupted by Generation Z
The 14 Principles That Drive Amazon's Success
Why Singing in a Choir Makes Workers Genuinely Happy (and How to Make Your Own)
The Radical Self-Improvement Plan That Pushed Trek Bicycles to $1 Billion in Sales
What You Need to Know About Finding the Right People at Every Level
How Women Can Be Instantly Smarter at Work: Turn Down the AC
A Psychology Expert Interviewed High Achievers About Success and Happiness. Here's What They Said
Thinking About Starting a Second Business? Ask Yourself These Questions Before You Do
An 81-year Harvard Study Says Staying Happy and Mentally Sharp Boils Down to 1 Thing
4 Incredibly Weird Smartphone Apps That Will Make You Question Reality
New Research Reveals That These 9 Things We Know to Be True About Work Are Actually Lies (Like Giving Feedback)
I've Hired New Grads For 8 Years. The Most Successful Understood This Critical Lesson
Trump's Trade War Will Cost Each American Household More Than $800 This Year, New Study Finds
Here's the Wise Advice Warren Buffett Gave Steve Jobs and Tim Cook
Your Employees Want More Financial Transparency. Now What?
Congratulations on Your Company's Rapid Growth--and Good Luck Finding a New Office
Want to Be More Persuasive? A New Study Says Do This 1 Simple Thing
Monday, May 27, 2019
How to Get People to Actually Read Your Company Blog
6 Unexpected Places to Put Your Marketing Budget This Year
LinkedIn Introduces "Ads" Tab to Show Sponsored Content from Companies
The 3 Best Ways to Motivate Your Employees, According to a Happiness Expert
The 1 Thing Successful Parents Don't Make Their Kids Do, According to Science
The Ultimate Guide to Facebook Messenger Chatbot Analytics in 2019
The 1 Thing Successful People Do With Habits to Get to the Top
This Email From Elon Musk Just May Be an Evil Stroke of Genius--But It's Not Enough to Save Tesla
The Inspiring Journey from Disaffected Banker Top Udemy Course Instructor
17 Super Motivating Quotes for When You're Feeling Unbearably Fatigued at Work (or Anyplace Else)
4 Business Planning Lessons from Today's Most Successful Brands
Here's the 1 Key Thing to Do Today If You Want to Feel Proud and Happy. (Today, Specifically)
Sunday, May 26, 2019
How to Capture Customer Attention with Three Simple Steps
5 Epic Summer Camps for Adults in 2019 (Yes, There is Such a Thing, and You Should Go)
15 Awesome Marketing Tools I Use Daily
Southwest Airlines Quietly Announced Some Truly Great News For Customers (Maybe That's Why No One Noticed)
A Frustrated Amazon Customer Tried To Return Her Package Directly to Jeff Bezos. His Reaction Was Eye-Opening
Viral Best Buy Training Question Is a Perfect Example of Clueless Corporate Policies
3 Science-Backed Ways to Make Your Dreaded Commute Remarkably Productive
Why This One Universal Behavior is Guaranteed to Hold You Back From Achieving What You Want
Harvard Spent 80 Years Studying Happiness, and We Now Know the 1 Key Habit That Makes People Happier. (The Problem: Most People Never Even Try)
This Billionaire Taught Me the Secret to Wealth
Saturday, May 25, 2019
17 Things the Best Employees Secretly Wish Their Bosses Would Do
The CEO Of American Airlines Just Made An Extraordinary Admission About the Boeing 737 MAX. It Won't Reassure Passengers
Tim Cook Just Revealed Steve Jobs Convinced Him to Join Near-Bankrupt Apple With 1 Powerful Thought
Career Advice for Today's College Grads From a Generation Xer
Here's What You Should Know About the Instagram Influencer Data Leak
Friday, May 24, 2019
The Director for the New 'Sonic the Hedgehog' Movie Tweeted This In Response to People Hating the Trailer
These 346 Companies Have the Best Workplaces in America. Here's What You Can Learn From Them
Many Companies' Core Values Are Generic Platitudes. Here's How to Make Sure Yours Drive Actions
Most CEOs Are Too Internally Focused. Here Are 8 Ways To Get Out of The Office
Movie Stars, Media and Marketing Executives Offer Insights Into Platforms and Community at the Collision Conference
7 Annoying Email Habits You Should Stop Right Now
5 Things High-Growth Companies Do Differently
Ford's Layoffs Just Taught a Valuable Lesson in Kindness for Entrepreneurs
7 Pearls of Wisdom for Leaders From the President of Toyota
Google Already Brings You the World's Information. Now, It Wants to Bring You Lunch
2 Founders Get Real About Breastfeeding While Closing Deals, Leading Meetings and Running a Business
On Memorial Day, These Great Military Commanders Have Something to Say About Grit
What To Do To Regain Your Leadership Skills If You Haven't Managed a Team In a While
Here's How Brands Can Harness The Power Of Music To Create New Customer Experiences
8 Gadgets Every Remote Worker Needs For the Perfect Home Office Tech Setup
Entrepreneurs Who Sell Their Business Experience a Loss of Self. Here's How To Navigate the Transition
Why Taylor Swift Might Be the Most Incredible Person in American Life
How to Increase Social Proof to Boost On-Site Conversions
In 1 Tweet This Restaurant Manager Showcases the Perfect Way to Respond to an Employee's Disastrous Mistake
What 9 Entrepreneurs Wish They'd Known on Graduation Day
Become a Better Leader Faster With These 5 Moves
Tired of Feeling Angry About How Wrong People Are? These 4 Books Can Help
These Are the 5 Best Beach Reads of the Summer, According to Amazon
When Real Learning Happens in the Brain, According to Neuroscience
The Surprising Benefits of Gossiping at Work, According to New Psychology Research
5 Toxic Things That Should Never Come Out of Your Manager's Mouth
College Not for You? You Can Make The Same Amount of Money In Half The Time Doing This
In 1 Sentence, Laird Hamilton Shares How He Mastered Both Surfing and Business
Here's How to Have a Healthy Relationship with Food (Your Mind and Body Will Thank You)
Bill Gates Says You Should Read These 5 Books This Summer
What the Trade War With China Will Cost You, According to the New York Federal Reserve
Athleisure Used to Be Just an Outfit. Here's How It Became a Lifestyle
People Who Use These 3 Toxic Phrases Have Very Low Emotional Intelligence
Thursday, May 23, 2019
The Most Common Challenges Your Startup Will Face (and How to Overcome Them)
How to Develop a Successful Long-Term Business Strategy in 9 Simple Steps
Are You Ready to Land Your First TED Talk? Make Sure to Add These 5 Factors to Your Proposal
Ikea Refused to Sell Its New Rugs to Anyone Whose Brain Waves Didn't Pass Their Test
Want to Side Hustle? Here Are 3 Ways to Get Yourself Motivated (and They Only Take 10 Minutes)
How to Use Rivalries to Compete and Win
In 4 Words, Google Explains Why It Relies on Real People to Make Calls With Its AI Booking Service
How to Create a WordPress Child Theme
If you're using a theme you downloaded from the free WordPress theme repository, or maybe one you've bought from ThemeForest, you may want to make some tweaks to it.
Maybe you want to register a new font. Or add a new template file. Maybe you want to add some code from one of the tutorials or courses here on Envato Tuts+. Or perhaps you want to use the theme as the basis for a theme of your own design.
You might be tempted to just go and edit the source code for a third-party theme (ie. a theme you didn't write yourself), but don't! The next time you update that theme, new files will be downloaded and you'll lose all the changes you made.
Frustrating, to say the least.
But what can you do, if you do need to edit the theme?
Luckily there is a way to edit the code in a theme, and still have the ability to download the latest updates: that's by creating a child theme using the original theme as a parent theme.
This means that you'll activate the child theme in the WordPress admin, but within that theme's code are instructions to WordPress telling it that this is a child theme, and what the parent theme is. You keep the parent theme installed on your site, but you don't activate it. (It's essential to keep it installed, as without it, the child theme will break.)
In this tutorial I'm going to show you how to create a child theme in WordPress. I'll also give you some tips on how child and parent themes work, so you know which set of code is being used to display the content in your site.
Creating The Child Theme
The first thing to do is to create the child theme in your wp-content/themes folder. The child theme must have two files to work: a stylesheet and a functions file. You can also add optional files, such as template files or include files.
Create a folder for your child theme in the themes folder and give it a suitable name. I'm calling mine tutsplus-child-theme.
Inside that folder, create a file called style.css.
At the top of that file, add the following commented out code:
/* Theme Name: Tutsplus Child Theme. Child for Twenty Nineteen. Theme URI: https://github.com/rachelmccollin/tutsplus-child-theme Description: Theme to support tutsplus tutorial. Child theme for the Twenty Nineteen theme. Author: Rachel McCollin Textdomain: tutsplus Author URI: https://rachelmccollin.com/ Template: twentynineteen Version: 1.0 */
This tells WordPress that this is a theme, and provides the same information about the theme as you'd find in any theme—with one addition. The Template: twentynineteen
line tells WordPress that this is a child of the Twenty Nineteen theme.
You can use any theme as a parent theme, by using the name of the folder where it's stored. Don't use the title of the theme: instead, use the folder name.
Now save the stylesheet and create another file in your child theme, called functions.php.
In this file, you need to enqueue the stylesheet from the parent theme. It used to be that you did this by using an @import
line in the stylesheet, but this is no longer the recommended way to do it.
Instead, in your functions file, add this code:
<?php /* enqueue script for parent theme stylesheeet */ function tutsplus_parent_styles() { // enqueue style wp_enqueue_style( 'parent', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'tutsplus_parent_styles');
This correctly enqueues the stylesheet from the parent theme, using get_tempate_directory_uri()
to find that theme (the template directory is the folder where the parent theme is stored, while the stylesheet directory is the folder where the current theme is stored).
If you want to add any styling to your child theme to override or augment the styling in the parent theme, you go back to the stylesheet for your child theme and add it there. Don't add in in the functions file or try enqueuing any more stylesheets.
You can also add functions to the child theme's functions file, and template files to the theme folder, which will override the same template files in the parent theme.
So now you have your child theme set up—it's that easy! However, it's worth understanding exactly how child and parent theme template files interact.
Creating Template Files
Now let’s take a look at theme template files. Which template file WordPress uses to display a page on your site will depend on two things: the template hierarchy and the files you add to your child theme.
Imagine you’re viewing the Travel category archive page in your site. WordPress will use the template hierarchy to find the most relevant file:
- a category archive template file for that specific category, using the slug: category-travel.php
- a category archive template file for that specific category, using the ID: category-23.php
- a general category archive file: category.php
- a general archive file: archive.php
- the catch-all: index.php
WordPress will look for these in both your parent and child theme. WordPress will use the first file in the hierarchy that it finds, whether it’s in the parent theme or the child theme.
There’s one exception. When the most relevant template file has a version in both the parent and child themes, WordPres will use the file from the child theme, and ignore the one from the parent theme. This is one of the most common uses for child themes—to override a specific file in the parent theme.
Here are a few examples, using the category example above:
- If your child theme has archive.php and index.php, and your parent theme has category.php and index.php, then WordPress will use category.php from the parent theme because it’s highest in the hierarchy.
- If your child theme has category.php and index.php and your parent theme has archive.php and index.php, WordPress will use the category.php file from the child theme, as this is highest in the hierarchy.
- If your child theme has archive.php and index.php and your parent theme has archive.php and index.php, WordPress will use the archive.php file from your child theme. This is because there are two copies of the file highest in the hierarchy, and the child theme overrides the parent theme.
So if you want to override a template file in your parent theme, create a duplicate of that file in the child theme with the code you want. Or create a file that's higher in the template hierarchy and add that to your child theme.
Adding Functions to the Child Theme
Functions work differently than template files, and are a little less straightforward.
If you add a function to your child theme with the same name as one in your parent theme, WordPress will throw an error, because it's trying to call the same function twice.
But this won't happen if the function in the parent theme is pluggable.
A pluggable file is enclosed in a conditional check for another function with the same name, which looks like this:
if ( ! function_exists( 'tutsplus_function_name' ) ) { function tutplus_function_name() { // contents of function } }
Here, WordPress will check that no function has already been called that has the same name. If so, it will run this function. This is because functions from the child theme are called before functions from the parent theme. If you write a function in your child theme with the same name, that will run instead.
But what if the parent theme function isn't pluggable and you want to override it?
Well, you can do that by writing a new function that essentially cancels out the function in the parent theme, and giving it a higher priority than the function in the parent theme, so that it runs after it the parent theme funciton. Alternately, you can unhook the function from the parent theme and write a new function in the child theme, hooked to that same hook.
Imagine the function in the parent theme looks like this:
function tutplus_parent_function() { // contents of function here } add_action ( 'init', 'tutplus_parent_function' );
If your function in your child theme could undo the parent theme's function without you having to actually stop the parent theme function from running, you'd write it like this:
function tutplus_child_function() { // contents of function here } add_action ( 'init', 'tutplus_child_function', 20 );
But if you had to prevent the parent theme's function from running, you'd unhook it first, like this:
function wpmu_remove_parent_function(){ remove_action( 'init', 'tutplus_parent_function' ); } add_action( 'wp_head', 'wpmu_remove_parent_function' );
Note that you still have to put the remove_action()
function inside another function, hooked to the wp_head()
hook in this case.
Then you could write the function for the child theme as if the one from the parent theme never existed—remembering not to give it the same name, though!
Child Themes Are a Useful Tool for Editing Themes
Child themes have two main uses:
- With a theme that's been designed for use as a parent theme (often refered to as a framework). The framework isn't designed for use on its own: instead, you add styling and extra template files with a child theme.
- To allow you to edit the parent theme without actually directly editing it, or to add extra template files. This means that when the parent theme is updated in the future, you won't lose your work.
So next time you read a tutorial telling you to use a child theme instead of editing a third-party theme, you'll know what to do!