WordPress - Targetting a specific CSS selector on a specific page -


is a CSS selector that I want to target, but only on a specific page

Normally I will write something like this:

  .page-id-70 a {text-decoration: underline; }  

But this selector is in a different form, it is in internal brackets:

  [class * = "span"] {margin left: 82px ; }  

Is there any way to target the selector on the same page ID?

The best way to do this is to use the developer tool (Chrome is usually best ), And right-click and select 'Copy CSS Path'.

However, if this exact path is also on other pages, it may be best to include the category that you want to modify within the page. For example, in WordPress editing, simply click & lt; Style & gt; .myClass {styles here} & lt; / Style & gt; at the top of the edit box.

For example, go to the page that you want to edit, make sure you are in text or HTML view, not in visual view. Then paste at the bottom of the following:

  & lt; Style & gt; # Boxed waft & gt; Div: nth-child (5) & gt; Div.span12.animated.activate.fadeIn {margin left: 82px; } & Lt; / Style & gt;  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -