Use standard echo
or printf
with additional parameters. e.g.
if(isset($option['borderradius']) && (!empty($option['borderradius']))) {
$borderradius=".post { ";
$borderradius .= 'border-radius: ' . $option['borderradius'] . 'px; ';
$borderradius .= '-webkit-border-radius: ' . $option['borderradius'] . 'px; ';
$borderradius .= '-moz-border-radius: ' . $option['borderradius'] . 'px; ';
$borderradius .= '}';
echo $borderradius;
}
if(isset($option['borderradius']) && (!empty($option['borderradius']))) {
printf('.post { border-radius: %spx; -webkit-border-radius: %spx; -moz-border-radius: %spx; }', $option['borderradius'], $option['borderradius'], $option['borderradius']);
}
Related Posts:
- Displaying theme options in css
- Theme Options Page – User Updates Logo
- Selectbox in admin panel function linking to CSS
- Using if/else statements with output from theme options
- How to add drag and drop functionalities to a div inside option panel
- How to change a specific character in a theme option value – replace a space with a plus sign
- Adding first / last CSS classes to menus
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Editor role cannot save custom theme options
- wp_customize_image_control default value
- Site Title and Tagline in Pagelines DMS Options Panel
- “wp_enqueue_style();” don’t load new edited style
- functions.php not adding css to website?
- if file_exists not working with wp_enqueue_style
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Putting PHP variables into javascript [duplicate]
- How Display Posts on category
- Slider loading issue
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Incorrect MIME type for assets with Valet
- Customize position of social icons in upme plugin [closed]
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Error: options page not found
- Which is the correct way to conditionally enqueue a CSS file?
- Use PHP in stylesheet to specify a background image based on Category ID
- WordPress wp_add_inline_style unable to give hex colors?
- How to create table in wordpress without plugin? [closed]
- PHP in CSS file?
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Last class on last headline?
- wordpress admin plugin menu custom css
- How to Change CSS Colors from Custom Plugin Settings Page
- Where can I find the inline-css of my theme header?
- Undefined index for default custom theme option
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- Deactivate a plugin on wp version
- how to changes mobile menu toggle breakpoint in WordPress
- Timber right sidebar in WordPress theme
- Applying css in functions.php
- Illegal string offset in PHP function in via Theme Customizer
- How to Remove Theme Style CSS inside Custom Plugin?
- Add other class content with reference class value
- oceanwp+woo mobile cart sidebar text
- Adding Custom css file in the wp-uploads directory with custom php functions
- My top header looks different on single pages but is fine on the home page
- Using php code inside style tag
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- How to let mobile navigation menu close when link is clicked?
- Add Shortcode to ::before class
- Site title not showing. Please help me
- Fix hover images blink
- Hot to edit WooCOmmerce dashboard?
- Blog Image and Title in Right Sidebar
- Target a specific container to style on WordPress storefront theme
- Displaying POST content with HTML tags and all
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Position a repeated article blocks
- Custom Thumbnails [closed]
- Revision History for Entire WordPress Site
- wp_customize_image_control default value
- WordPress Setting page can not be saved by html radio
- wp add inline style in loop
- Display pages from specific page template
- WP_Nav Highlight Parent Issue
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- How to add margin underneath woocommerce total price amount -> productpages
- Load files content [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Options.php loop won’t show!
- Predefine Magazine Style Layouts
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Sorting Problem
- Custom HTML/CSS Theme into WordPress – SEO considerations
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- WooCommerce Checkout Cart [closed]
- why css file not link?how to create permalink?
- Using Featured Image as Hero Background in Word Press