It’s as simple as doing a conditional and check if you are on home.
What you are looking for is is_page_template( );
. Wrap your button inside it as follows:
<?php if( is_page_template( 'your-template-slug.php' ) ){ ?>
<button name="button" style=" ... " value="OK" type="button">HAVE A QUESTIONS</button>
<?php } ?>
Related Posts:
- How do I add a search bar to my header?
- Remove sticky behavior from top navigation on twenty fourteen theme?
- why enqueued styles in header.php shows in footer?
- How to change header dimensions in WordPress?
- How to deal with logo color on dark mode?
- custom header navigation has odd spacing [closed]
- Responsive issue with secondary logo – not sticking in position [closed]
- Where are the contents of WP_Head
- How can I selectively insert a header for my shop page in woocommerce? [closed]
- Remove top bar header
- Twenty Fourteen: Shrinking header while scrolling down
- Twenty Fourteen: Unsticky header after making header bigger
- header background color changed after drop & import database in phpmyadmin
- Put CSS on TOP, how?
- CSS does not take effects and it doesn’t show in inspect [closed]
- site-description css is overriden [closed]
- How to get these two divs side-by-side?
- How to implement max-font-size?
- @Media min-width & max-width
- How do I center this form in css?
- Float a div above page content
- What does an asterisk (*) do in a CSS selector?
- How can I horizontally align my divs?
- background-size: cover not working?
- combined multiple classes into one css rule
- CSS – display: none; not working
- Is there an opposite to display:none?
- Rainbow gradient on text in CSS
- CSS3 opacity gradient?
- font-weight is not working properly?
- What would be the best method to code heading/title for ul or ol, Like we have caption in table?
- How can I make my header image properly responsive?
- CSS fixed width in a span
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- What is the correct way to enqueue multiple CSS files?
- Remove wp_add_inline_style
- Which Details Are Required For Style.css File Header?
- How to implement different color schemes in your themes
- @font-face doesn’t work
- How to target first img in every wordpress post with CSS [closed]
- How to change Parent Themes in Child Theme CSS
- Set Image width=’x%’ (percentage width not pixel width) when inserted via the media manager?
- Enable specific CSS Code for Visitors and specific Roles
- How to exclude certain code from style.css? [closed]
- How do the default themes reference style.css?
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- How to decrease picture size
- Can’t remove WordPress post image height/width attributes?
- whats happening with my index page?
- Load in wp admin assets from child theme
- Enqueue styles in new site editor in WordPress 5.9
- Change via CSS the color of social menu icons
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- @media in bluehost is being commented out [closed]
- Two column Dropdown for WordPress Toolbar
- Images loaded as background-image are shown but s aren’t
- Twenty Fifteen : Wider right column for the content
- css file status 403
- Adding Custom css file
- CSS styling of native (inbuilt) wordpress thumbnails [closed]
- Change CSS on a wordpress post
- Update wordpress causes white space on admin
- Trying to hide a button on a specific WordPress Page ID
- How to add animation the featured image?
- How would one set or override a Fallback font for characters in second language?
- why has this element moved despite css being the same as other pages?
- First element/selector of enqueued CSS file breaks
- Test wrapping cutting words in half on my WP site [closed]
- Different background for different page
- WordPress aggressively caching CSS
- calling an additional css and js links for a custom page template
- How to change color of some items through css [closed]
- Is there any way we can restore the “Additional CSS” after being erased?
- sidebar with hovering mouse effect
- Default paragraph block styles just for pages NOT for posts?
- Custom CSS in Widget editor (Gutenberg) gets stripped out
- Custom Gutenberg color classes naming convention
- child-theme style not changing on localhost
- My sites mobile view design is different when not logged in – how do I ensure it’s all the same?
- Gutenberg CSS Issue
- Two CSS files loading extremely slow
- When changing theme’s font, why does font-size attribute not work? [duplicate]
- How to remove the Welcome watermark on this page? [closed]
- About copy and paste content and formatting
- How to display a background image in a page body area? [closed]
- Vertical aligning CSS pushes column to left [closed]
- checkbox function not working for dropdown menu
- How to change hover color on bulk-action-selector-top and bottom on wordpress admin?
- Bootsrtap.css overlap style.css in custom wordpress theme
- Exclude parts of default css import
- Replacing parent theme’s IE-specific CSS
- image background is cut [closed]
- Having Trouble Styling a Table in a WordPress Post
- Bootstrap 4 Optimization
- To override CSS of parent theme
- How to customize a theme’s navigation menu with css
- [class*=”content”]:before css styles in TwentyThirteen [closed]
- How to change the CSS in one file?
- Custom css code in wordpress [closed]
- Using Easy Google Fonts correctly and Droid Sans on Max OS X [closed]