Put everything between <script>
& </script>
in a separate file. Then use wp_enqueue_script
with the correct path of the file & dependencies to false. After that you can use only <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
to add the tweet button.
Related Posts:
- theme path in javascript file
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- How to correctly add JQuery in a WP theme?
- using wordpress without javascript
- Theme Javascript.php Overwritten Nightly [closed]
- How can I wrap all blog posts image with
- Flexslider not working for my custom theme WordPress
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- How to convert that page to a wordpress template? [closed]
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- Sizing screenshot.png without losing aspect ratio
- How to insert a logo in the header?
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Why doesn’t default WordPress page view use force_balance_tags?
- Proper, exhaustive documentation for wp.editor etc
- Page template in two level deep folder
- Trigger Customizer saving process with Javascript only
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- add_image_size is scaling, even though crop is set to true
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- How to Change CSS Variable value in Theme Customizer Live Preview
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- Theme Customizer not loading
- WordPress Customizer Control with React
- Is it a good idea to make whole theme widgetized?
- Finding Page Template and Displaying Content
- Single Theme folder for Multiple WordPress
- How i can get widgets areas working in customizer?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Removing feeds from header using a function?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- My Admin bar covers my sticky navbar [closed]
- Single page site with history.js
- Single Page Design, Storing in Theme Options
- How to edit theme functions file to modify pagination?
- Edit footer via customizer
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Migrated WordPress site renders Chinese
- How to Find the Page the Front Page is Using?
- My jQuery is enqueued properly. So why isn’t it working?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Have a Pure HTML Sub Directory In WP Site
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- WordPress page/blog incorporated into static website
- wp_enqueue_script not working?
- Random white space before doctype
- How to add menù section to my WordPress template?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- Starting point for custom Themes [closed]
- Theme Development -> Specific Homepage
- pass wordpress template directory into ajax url call
- theme-independent CSS/JS files
- searchform.php doesn’t work properly
- Javascript development in Custom Themes
- How add built-in textarea in theme development?
- Filter didn’t work on content class (hybrid_post_attributes)
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- Trying to link to a php template file but its blank
- Theme author.php transfer
- Custom Enfold theme tab layout not compatible with WPML
- Different WP Rest API custom endpoints across different themes
- How to test another theme in a live WordPress website instead of live preview?
- WordPress uploads do not show up and I see the white screen of death in some cases
- Can’t upload images on new theme
- Any way to permanently translate themes?
- Primary Menu Showing All Pages With No Sub-Nav
- Theme Development : License help
- Why the slideshow is not shown in my theme?
- Add social media icon in header area
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- Correct way to make a custom block theme responsive
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified