WordPress.org

Ready to get started?Download WordPress

Forums

writing articles: creating anchor with own class (8 posts)

  1. Morjo
    Member
    Posted 5 years ago #

    When writing an article with an anchor I can choose between 5 classes (aligncenter, alignleft, alignright, wp-caption, ap-caption-dd; see also http://img78.imageshack.us/img78/773/bild12ft0.png).

    Is it possible to create more classes for this menu? If yes, how can I do this?

    Thanks a lot for your help!
    Morjo

  2. Morjo
    Member
    Posted 5 years ago #

    anybody today? :)

  3. Jabbok
    Member
    Posted 5 years ago #

    You can create any type of class you want in your StyleSheet. Once you insert the LINK into your post you'll have to add the class manually.

  4. Morjo
    Member
    Posted 5 years ago #

    The "manually" is the point, I want to avoid :)
    My aim is to let anybody without programming skills change/insert contents on that blog. So I of course try to make everything as easy as possible.

    What I really want in conclusion is to automatically set icons before pdf, odf and other files. I've found some Plug-ins (attachment_list, attachment-manager) for that feature, but they don't seem to work with actual WP-versions...

    Is there any chance to realize this easily?

    Thanks,
    Morjo

  5. Jabbok
    Member
    Posted 5 years ago #

    I understand what you want. I place a YouTube icon before links to YouTube, a Twitter icon before links to Twitter, etc.

    I created a class designation for this in my Stylesheet, which isn't hard at all, and add the class="" here: <a class="" href">

    I have a "YouTube" class, a "Twitter" class, etc.

    I don't know of any other way to accomplish this.

  6. Morjo
    Member
    Posted 5 years ago #

    Thanks a lot for your answers. So thats the way I will solve this, too.

    Hope that newer WP-Versions anytime can use defined classes for the drop-down-menu :)

  7. Dave P.
    Member
    Posted 5 years ago #

    Just wanted to post that I'm looking for the same thing. I'd like to add a class to the dropdown list when created a link. Currently there is only the following:

    • aligncenter
    • alignleft
    • alignright
    • wp-caption
    • ap-caption-dd

    Anybody have any ideas?

  8. fredriksoerlie
    Member
    Posted 5 years ago #

    Me too...

    Been looking everywhere, but can't find that dropdown list, nor any plugin that let me change these predefined classes. It would be a very nice feature to be able to create my own classes!

    Someone please help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.