Horje
Css selector idea, using both pseudo class & element - Wordpress Solution
I got a css selector problem, hope someone can help this out. Please see this jsfiddle link:[[LINK href="http://jsfiddle.net/bardirian/z4xcd95v/"]]http://jsfiddle.net/bardirian/z4xcd95v/[[/LINK]] What I need is to have a text content after the "Item1", well it looks simple but I try a lot different syntaxes just never work. The result should be looks like the attached file, adding text content by using :after. *Do not change the html structure since this is trouble with a wp theme. And please updated it from jsfiddle.

Solution - 1

Did you try this:

.project-info h3 + div.project-info-box div:after {
    content : "Text"
}
[[LINK href="http://jsfiddle.net/z4xcd95v/24/"]]http://jsfiddle.net/z4xcd95v/24/[[/LINK]]


Solution - 2

hi Bard Tian, your choices can be anything as per your need... though this might be helpful...

Section

Title1:

Item1

Lorem Ipsum Dolor is the dummy text. Lorem Ipsum Dolor is the dummy text. Lorem Ipsum Dolor is the dummy text. Lorem Ipsum Dolor is the dummy text. Lorem Ipsum Dolor is the dummy text.

Title2:

"i guess jquery would be a better solutions"
$('.project-info div.project-info-box:first-child a').append('-');


Solution - 3

I hope this is what you are looking for [[LINK href="http://jsfiddle.net/z4xcd95v/2/"]]http://jsfiddle.net/z4xcd95v/2/[[/LINK]]


Solution - 4

You just need a specific ID for the item 1's div tag. Your code would be something like [[LINK href="http://jsfiddle.net/navjotjsingh/gksqd5vt/1/"]]http://jsfiddle.net/navjotjsingh/gksqd5vt/[[/LINK]]


Solution - 5

Hi, Please check : http://jsfiddle.net/z4xcd95v/5/ Hope this will be helpful. Thanks Sai





Wordpress

Related
Display Post Meta attached to one page, on every page. - Wordpress Solution Display Post Meta attached to one page, on every page. - Wordpress Solution
Need some help getting a Jquery library to work - Wordpress Solution Need some help getting a Jquery library to work - Wordpress Solution
BBpress topic freshness function in wp_query. - Wordpress Solution BBpress topic freshness function in wp_query. - Wordpress Solution
List all posts with 2 terms of a taxonomy - Wordpress Solution List all posts with 2 terms of a taxonomy - Wordpress Solution
Table fix - Wordpress Solution Table fix - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6