• I am using the Twenty Eleven Theme with Digital Raindrops’ Twenty Eleven Two Post Columns child theme.

    I read this topic and it mostly resolves what I am trying to accomplish, but I want to limit the function to the post titles only. Currently with that function in place it changes the menu bar and page titles as well. I tried to fix it using a conditional tag, but it does not work. In WordPress’ codex “Conditional Tags” page it states this:

    Warning: You can only use conditional query tags after the posts_selection action hook in WordPress (the wp action hook is the first one through which you can use these conditionals). For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.

    I am not very code savvy so I don’t know a work around for this problem (if there is one). Please let me know. Any help will be very much appreciated!

    (Hopefully this isn’t too off topic, but if there is an easier way to just make the “$” signs and numbers (e.g. 1, 2, 3, etc) appear a different color from the rest of the post’s title I would welcome suggestions for that as well)

    Again, thanks for your time and any help ??

    -Rafael

Viewing 1 replies (of 1 total)
  • For both the easiest solution would be to use jQuery !!

    Select the title by class then Split the title usign the &nbsp and apply your formatting to that.

    Second question:
    javascript regex to find $ and numeric then format them and wrap in new css classes.

    If this is to vague you will have to pay someone.

    Or get googling you will be able to find some solutions out their using jQuery.

Viewing 1 replies (of 1 total)
  • The topic ‘How to select words in post title (part two)’ is closed to new replies.