well that depends on what you want to do, but if it is easier for you to edit that template it will be better that you can control all the output of it.. fx like this
function add_require_scripts_files() {
wp_enqueue_style('layout', get_template_directory_uri().'/style.css', array(), '1.0.0', "all");
}
add_action( 'wp_enqueue_scripts', 'add_require_scripts_files' );
and this what the function expects as paramenters:
wp_enqueue_style( $handle, $src, $deps, $ver, $media );
and remember to remove the function that adds the css file in the init
function.
Related Posts:
- Remove Archives in category title
- Twenty Twelve Theme pagination issue
- How to customize WordPress twentytwelve_comment function
- I can’t change the body background-color through style.css
- TwentyTwelve, where is the excerpt box in add new?
- WordPress Twenty Twelve Child Theme. Removing default widgetized areas
- Remove Archives in category title
- Unregister mobile menu in twenty twelve not working
- How to expand picture to cover entire header area? (twenty-twelve theme)
- deleting replies on post previews on the homepage
- dates under post titles — also showing up under Nav
- Change Font Size on Blog (Twenty Twelve)
- What font does TwentyTweleve use? (not as simple as it sounds)
- My theme is not showing up on any other computers
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- How do I undo the most recent local commits in Git?
- Git: How do I force “git pull” to overwrite local files?
- Differences between git pull origin master & git pull origin/master
- How do I rename a local Git branch?
- How can I switch to another branch in git?
- How do I discard unstaged changes in Git?
- Git: How do I force “git pull” to overwrite local files?
- How do I discard unstaged changes in Git?
- Download single files from GitHub
- How can I make git accept a self signed certificate?
- Git: How to squash all commits on branch
- How can I revert multiple Git commits (already pushed) to a published repository?
- Undo git pull, how to bring repos to old state
- What does “Git push non-fast-forward updates were rejected” mean?
- What is the difference between ‘git pull’ and ‘git fetch’?
- Undo git pull, how to bring repos to old state
- Git: cannot do a partial commit during a merge (SourceTree)
- Git: How do I force “git pull” to overwrite local files?
- What is the meaning of git reset –hard origin/master?
- How can I reset or revert a file to a specific revision?
- Else clause on Python while statement
- Delete all local git branches
- Why does ‘git commit’ not save my changes?
- How can I undo git reset –hard HEAD~1?
- Set up git to pull and push all branches
- git push to specific branch
- Get changes from master into branch in Git
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- how to reset develop branch to master
- Do I commit the package-lock.json file created by npm 5?
- Rebasing remote branches in Git
- How can I see the changes in a Git commit?
- What is the Git equivalent for revision number?
- How can I delete all Git branches which have been merged?
- difference between git merge origin/master and git pull
- What’s a good (free) visual merge tool for Git? (on windows)
- Best practice for versioning wp-config.php?
- Dev, Stage and Production Deployment for WordPress Sites?
- Getting Started with Subversion, Git, or similar Version Control System to keep a History of my Files? [closed]
- Remove Open Sans from Twenty Twelve theme
- Insert HTML just after tag
- How can I keep the content of my pages version controlled?
- Solution for database version control and deployment?
- How do I add version control to my workflow?
- Best way to version control WordPress template files?
- Version Control: Entire site or just pieces?
- What is meant by __(‘page’,’twentytwelve’)
- Should I use SVN or Git?
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- WordPress Health Tool reporting version control as a critical issue
- Subversion, github, etc.. version control systems/repositories
- Using source control with WordPress
- Plugin development without Theme adjustments?
- WP plugin management
- Call sidebar from a template
- WordPress Workflow – version control, deployment = database issue
- What is the best way to setup wordpress development environment for freelancers with version control?
- storing database in version control
- Create a new template for twentytwelve
- How do I get Version of all active plugins programmatically?
- Versioning and your WordPress site?
- Is it better to create a Git repository at the root level or in the WordPress theme directory?
- Setting up SVN for teamwork on WordPress custom theme development
- Add post dates from child theme and change font size on homepage post
- Using Subversion to deploy WordPress
- How do you manage your theme versions when privately distributing?
- Pull latest stable release via git [closed]
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- TwentyTwelve child theme mobile menu not working
- Plugin updates, version dependencies, and backwards compatibility
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?
- How to make changes on WordPress site locally on live site?
- How to make my plugin able to be updated from admin panel?
- Manage base theme with version control?
- How do I set the featured image size on the single post?
- How should I be handling my theme version numbering?
- WordPress script file version numbers changing in live environment
- How can I edit commit messages in my wp-hosted plugin repo?
- Front page should display only one category of posts including sticky post with custom featured post box
- Version control with a team of non-developers