Add CSS and JS Particular Page. Put this code in your current active theme function.php file
<?php
function function_name() {
is_page( 'about-me' ) //is_page( 'PAGE_SLUG_NAME' )
{
wp_enqueue_style( 'stylecss', get_template_directory_uri() .'/css/style.css','', '3.3.1' );
wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array ( 'jquery' ));
}
}
add_action( 'wp_enqueue_scripts', 'function_name' );
?>
Related Posts:
- Display Images Inline via CSS
- Write text below a specific part of a sentence
- How to insert html/css/javascript code to wordpress plugin
- How to integrate my HTML and javascript into my child theme
- How to create fa-bars animated menu
- How can I get the search form to be selected automatically?
- Cannot set property ‘className’ of null at setThemeFromCookie
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- prevent HTML output if custom field is empty [closed]
- Hide Tab Titles from Tabs Block
- Unable to use Datepicker in a table when inserting a row
- How would I add this code to a single WordPress page?
- Trouble with adding preloader to my home page index.html and index.js
- Interactive maps in wordpress
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How am I supposed to use index.html?
- Failed to load resource: the server responded with a status of 404 (Not Found)
- Making a
- multiple classes on single element html
- How to get these two divs side-by-side?
- How to change text transparency in HTML/CSS?
- How does the data-toggle attribute work? (What’s its API?)
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Full-screen iframe with a height of 100%
- Check if an element contains a class in JavaScript?
- height style property doesn’t work in div elements
- Why is marquee deprecated and what is the best alternative?
- Refresh/reload the content in Div using jquery/ajax
- How to write inside a DIV box with javascript
- How to get height of div in px dimension
- Crop the image using JavaScript
- Why write script type=”text/javascript” when the mime type is set by the server?
- Retrieve the position (X,Y) of an HTML element
- How to display raw JSON data on a HTML page
- Align elements side by side
- CSS – display: none; not working
- Delete white space between divs
- CSS/HTML: Create a glowing border around an Input Field
- Need to make a clickable
button- Set line height in Html
to make the html looks like a office word when
has different font sizes
- Creating Accordion Table with Bootstrap
- How to create checkbox inside dropdown?
- How can I make my header image properly responsive?
- Adding Google Translate to a web site
- Removing whitespace between HTML elements when using line breaks
- CSS fixed width in a span
- Why are my divs overlapping?
- How to use aria-expanded=”true” to change a css property
- Links not clickable on mobile devices in WordPress
- Changing code font size on wordpress
- WordPress website broken in Facebook mobile browser
- WordPress footer menu floating with height of footer
- Custom CSS in WordPress messing up
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- WordPress Displaying Thumbnails Vertically
- Changing Font-Size based on specific Font thru javascript
- Minify HTML, CSS, JS with PHPWee?
- Why is WordPress changing my HTML code
- Show post in slider
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- Show enqueued CSS and Script in custom header
- Older isotope portfolio rows shifting downward by 1 pixel on hover
- Shrink Header Image on Scroll
- Get a blank line after div by simply leaving an empty line in the editor
- Can’t Display Table Headers in Responsive table layout
- Why is this jquery / java script code not working in mobile / in devices?
- Seperate functions.php for part of site
- Some Text of website page on Iphone Safari become invisible
- Simple way to add custom class and ids to individual Gutenberg blocks
- How to add class to an html output element in tinyMCE paragraph drop down menu
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Equal height sections in custom Headway Theme
- How would I create the same popup in css and javascript as the one in contact button on the site https://www.sublimotionibiza.com/es/main.html [closed]
- Combine CSS Files without plugin
- Button doesn’t work in the profile panel
- Add other class content with reference class value
- How can I hide this custom slider while Elementor editing window is open?
- WordPress footer always at the bottom of the screen-page
- Clickable Text To Replace Radio buttons
- How to remove the specific class
- WordPress Slider is not working
- Change the version of default style.css in wordpress
- HTML not resizing
- Web Developer Console: “Slow network is detected.” with fonts
- Fonts are parsed in one way but rendered in a different way
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- WP theme update causes child theme CSS problems
- Possible jquery / library conflict in plugin usage
- How to remove audio player styles added by mediaelement.js JavaScript?
- Element works, but not on wordpress site [duplicate]
- Add woocommerce plugin in own theme
- Hiding fields a form in via CSS [closed]
- WordPress site suddenly not showing some DOM elements but mobile is fine
- Grid problem on privew mode
- Editing size of h3 tag in wordpress on a one-off basis
- Modal pop-up HTML code works on other sites or HTML viewers but not in the custom HTML block within a wordpress page?
- How to optimise Text to HTML ratio for SEO by separating the HTML into multiple files?
- hide specific css and js files in specific page wordpress with id or without?