Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting the link for the currently shown post #294

Closed
githubincronda opened this issue Feb 18, 2018 · 2 comments
Closed

Highlighting the link for the currently shown post #294

githubincronda opened this issue Feb 18, 2018 · 2 comments

Comments

@githubincronda
Copy link

Hello,
i was wondering if there was a way to highlight the link to the current post with a different color text and/or background when using List Category Posts as a widget in a sidebar?
Thanks so much for your advice!

@picandocodigo
Copy link
Owner

Hi @githubincronda, when the plugin lists the posts, it uses the current CSS class for the current post. It looks something like this:

<li class="current">
  <a href="http://localhost:8080/?p=1300" title="Test LCP">Test LCP</a>
</li>

You can edit the color in your theme's CSS with something like this:

.lcp_catlist li.current{
  /* This is the color of the bullet */
  color: #f00;
}

.lcp_catlist li.current a{
  /* This applies to the color of the link */
  color: #0f0;
}

@klemens-st
Copy link
Collaborator

Resolved and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants