Gradient and boxshadow are fine to put inline. Your trouble will be with the hover states. Luckily there is a trick. You can put the hover styles in an outer element and force inherit on hover. Like this:
<div class="myshortcode">
<a style="color:blue;"><span style="color:red;">Content</span></a>
</div>
In your style.css you add this generic line with a transition effect as bonus:
.myshortcode a span {transition:color 1s;}
.myshortcode a:hover span {color:inherit !important;}
Related Posts:
- WordPress Shortcode and Dynamic CSS
- Shortcode content output but not in correct place
- Show contact 7 form in popup
- How do I use Shortcodes inside of HTML tags?
- Multiple pages on one with different HTML
- Minify HTML, CSS, JS with PHPWee?
- How to display a value from a radio button in the options menu in wordpress
- Placing raw HTML inside a WordPress shortcode
- An unwanted inline style is added to my body tag
- Show post in slider
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- Plugin CSS not enqueing
- how to remove metadata from the posts of my blog?
- Customize position of social icons in upme plugin [closed]
- Different post styles depending on category
- WordPress Multiple Navigation bars
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Wrapping a Sidebar within
- Add Codepen animation as Preloader to WordPress
- Using ob_start and ob_get_clean with wordpress shortcode
- Where can I find the inline-css of my theme header?
- Handling PHP/HTML inside the output of a shortcode function
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- Website completely messes up when logging out
- Need help removing […] after excerpt
- Calling PHP Titles inside Javascript Markup
- Link to page with posts of specific type
- Shortcode displaying at the top of the page [duplicate]
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- Background image no longer fits to screen now that project is in php files
- Add other class content with reference class value
- Shortcode in Shortcode/HTML Graphics and Pictures
- PHP function for horizontal Woocommerce thumbnails and badges
- I can’t go to the page archive-{post_type}.php
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- couldnt show short code atts in category
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Drop down question
- WP Website is shown in HTML
- Can’t display anything through homepage text editor
- How to find and delete a menu item in php?
- How can I edit the final HTML structure of the whole web page
- WordPress Slider is not working
- How to return html as a string from php for WordPress
- How to display post meta bellow every posts
- how to add functions to my function.php using a child theme?
- Add Shortcode to ::before class
- Make a full-width wordpress page
- How can I create a shortcode from an html and php code written together
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- user update profile for custom code
- Font-Family does not looks like how it should be [closed]
- Where to find the html for WordPress site? [closed]
- How to have Function of a plugin using global vars into a shortcode?
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- featured post as div background
- Trying to customize wordpress drop down categories
- Cant get theme to change footer color through theme customizer
- How to customize posts in WordPress by using HTML and CSS?
- WP_Query not returning results
- Header location [closed]
- How do I link the side images?
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- Is there a better way to output HTML as a shortcode?
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- why css file not link?how to create permalink?
- How to create different templates for woocommerce single-product.php?
- Local wordpress install only shows home page, all other pages Not Found
- How do I make an HTML table from a database table?
- Modify previous and next text from pagination links
- Shortcode putting html such as
- “wp_enqueue_style();” don’t load new edited style
- How to find the output of contact form 7 shortcode? [closed]
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- Css loads very slow [closed]
- Settings API callback function inserts html quotes from nowhere
- How to Reference/Echo Variable from Another PHP Function
- Replace shortcode in substring
- How to separate HTML and WordPress files
- displaying content that includes shortcodes within an echo
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- How to Remove Theme Style CSS inside Custom Plugin?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Reload page with a different shortcode when a user selects from a dropdown
- Update same content in multiple posts at once?
- Create dynamic content from one WP page to multiple other pages
- Advanced Custom Fields Show PHP in Text Areas
- Add a “Next Post” & “Previous Post” styled button manually to a post