ThemeShaper Forums » Thematic

create a new class/style for the links in entry-content

(6 posts)
  • Started 4 years ago by Sandraniubo
  • Latest reply from Chris
  • This topic is not resolved
  1. Sandraniubo
    Member

    Hi!,
    Can i create a new style/class to have a different link style?, because i need to keep the current a style (i use it for the rest of the site), but also have another one when i create a link in .entry-content.

    cany you help me?

    Posted 4 years ago #
  2. Those links can be targeted with

    .entry-content a {
    something:else;
    }

    Posted 4 years ago #
  3. Sandraniubo
    Member

    ok thanks,
    one thing i see that i will need to have 2 styles of links in .entry-content, in this case wich will be the css, how can i refer to each one?

    thanks in advance!

    Posted 4 years ago #
  4. I would manually add a class attribute to the links. Like

    <a class="something">
    Posted 4 years ago #
  5. Sandraniubo
    Member

    i see,
    sorry but my experience with css is'nt so good, if the class that makes ref to the text is .entry-content, how can i reffer to the the different links that are inside, where do i have to create the new class for each one?

    I dont't know if i'm explaining quite well, the fact is that when i add a post, in the text i create links one style will be to navigate throw tags and external links (betwen the text), and other to download content and navigate to other sites(at the end of the text).

    I hope this explanation will make it clearer for you,
    can you help me?

    Posted 4 years ago #
  6. Sandra,

    you can address these classes direct .. writing the post you would enter a class 'tag-links', 'external-links', 'download-links', or 'site-links' .. these can be styled without any other selectors in your style.css.

    Another option would be using custom keys / values for these links plus a function that creates these links including the classes in your posts.

    Cheers,

    Chris

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.