WordPress has a function called wp_get_referer()
that you could use to do this. Codex link
$page_referrer = wp_get_referer();
if ( $page_referrer == 'campaign-1-url') {
// Campaign 1 css
}
You’ll have to craft the conditional statement to fit yours needs.
Related Posts:
- Is there a CSS parent selector?
- What is WebKit and how is it related to CSS?
- How can I vertically center a “div” element for all browsers using CSS?
- How do I hide the bullets on my list for the sidebar?
- How to override the properties of a CSS class using another CSS class
- CSS display: inline vs inline-block
- Aligning two divs side-by-side
- How to center HTML5 Videos?
- Text border using css (border around text)
- Is there an opposite CSS pseudo-class to :hover?
- U8Qtu
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- What is the difference between visibility:hidden and display:none?
- Center a position:fixed element
- How to change the background colour’s opacity in CSS
- difference between css height : 100% vs height : auto
- Using margin / padding to space span tag from the rest of the p tag
- Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
- How to change version of .css in WordPress?
- Style something only on the home page
- How do I register/enqueue a custom CSS file?
- Why isn’t my theme processing SASS?
- What CSS rules are introduced to core blocks through wp-block-styles?
- PageLines theme: how to change the background color of the main content vs. entire page?
- Trying to load a responsive CSS media query using Custom Taxonmy
- Changing CSS in Twenty Eleven to change font size of body text
- Deregister CSS style link ‘open-sans-css’
- When using https, wordpress doesn’t use https for CSS and JS, and admin doesn’t work. How do I fix this?
- How to load different css file depending on language
- I want to change my post titles from h2 to H1
- Change logo on specific page id using css
- Write text below a specific part of a sentence
- Style classic editor buttons
- Remove id attribute from stylesheet link
- Layer post title on top of image WordPress featured thumbnail image
- Twig + wordpress – how to get filemtime for style.css
- Font embedding in wordpress
- Inconsistent `body_class()` function
- How to Add Custom CSS to the Media Thickbox?
- Link theme options page using ACF to styles
- Does costum code in the root folder get lost when wordpress is updated?
- WordPress Light/Dark Theme best practices? Is there a way that really works?
- Changing CSS FilePath for All Pages
- wp_add_inline_style breaking style and not working
- How to add a custom CSS class to ALL links
- How to change H1 color only for pages [closed]
- Background image reversed on pages after home page [closed]
- How to get an unique identifier for a page/post/category/tag etc.?
- Why won’t my custom login page CSS load?
- How to apply CSS based on publishing date
- Remove CSS Attribute by Overriding CSS in Child Theme
- CSS gap issue in div element
- Menu toggle bar works only on some pages in WordPress
- WordPress custom CSS file overrided by internal CSS [closed]
- Can you change the color of svg icons to the global color I choose from WordPress
- After moving my site, sub-menus are not showing [closed]
- Free theme and css/bootstrap.css is not overridden in the child theme
- Theme twentythirteen widget area clearfix
- Use special fonts on a non-hosted WordPress blog
- Disable CSS for IE 8 and earlier.
- Using categories on navigation bar instead of pages
- How do I minify ‘@import’ css files with wp-minify?
- Selector for page to set up scrolling plugin
- Button doesn’t work in the profile panel
- I have a wordpress website which uses a really weird font on Opera. What do I need to do to fix it?
- Elementor – Edit Global Colors Order
- the_post layout
- Modal dialog under the backdrop
- Hot reload failing to update file changes
- Stop custom Gutenberg styles taking over other admin bits?
- astra theme costum css not working in wordpress 5.6
- Trying to get my CSS files to load last using add_action(after_setup_theme, add_css_js, 100000)
- Trying to modify the background of a form on a specific page
- Clickable Text To Replace Radio buttons
- How to remove the specific class
- Customizer Appearance Issue
- Change mobile menu color from red to another color
- Change the version of default style.css in wordpress
- style.css not working but customizer additional css does?
- Hide duplicate entry title
- How to set different color in a select box due to selection with css
- 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
- How to Position Read More link after post excerpt?
- WP Page Builder – Remove table border?
- WordPress crop image not working [closed]
- How to make CSS load live based on options clicked in the theme customizer?
- How can a left and right margin be added to the admin bar without access to “…wp-includes/admin-bar.php”?
- How to implement styling of div in the front end using plugin admin meta box settings?
- Inserting a DIV Block Into a Listing of Excerpts?
- WordPress Custom Superfish CSS Problem [closed]
- Browser stacks different versions of style.css
- Do you use css reset in your child theme [closed]
- Is it possible to make invisible a div only on certain pages using CSS?
- why does WordPress custom css convert alpha to hex values?
- What CSS selectors to know for WordPress? [closed]
- MY CSS FILE IS MISBEHAVING. IS NOT WORKING WELL ON MY WP SITE [closed]
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How to add css to wp_head depending on the user role?