Options: Styles, ID,..etc?

Hi,

Sorry in advance for a very newbie question.

I want to change the text color and style for the author. I am using the shortcode in here: http://demo.theme.co/ethos-1/shortcodes/author/

I see that there are options stated below that can allow me to do so. Can you please advise how can I do that?

For example, where can I find a list of all available styles and how can I contribute in the author shortcode.

It will be a great help if you can write me an example to change the author bio text color and style to red and italic respectively.

thanks.
K.

id: add a unique ID to the shortcode.
class: add a class or multiple classes to the shortcode.
style: add inline styles to the shortcode.
title: enter a title for the shortcode.
author_id: display the information of a particular author by specifying their ID.

Hi @khzidan,

None of the options available for the author shortcode will let you change the text color and the font style of the author.

However, you can make use of the class field then make use of the class to target the author element and add a custom CSS to style the text of the shortcode.

For example, the shortcode:

[author class="the-author" title="About the Author"]

then to style the author output, add this code in X > Theme Options > CSS:

.the-author .h-about-the-author {
    color: #000;
}

.the-author .h-author {
    color: #000;
}

.the-author .p-author {
    color: red;
    font-style: italic;
}

Feel free to change the color value in the code.

Kindly note that since this is a custom code that changes the default behavior/display of the theme, you will be responsible to maintain or update the code in case you require further changes or if the code stops working in future updates. If you are uncertain how to proceed, it would be best to get in touch with a developer.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.