New Landing How can we help? Themeforest Theme Support Dante Links highlight on blog posts and pages content

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Dante
  • #114168
    JavierCane
    Member
    Post count: 45

    Hi!

    In order to diferenciate the links from the common text, I want to apply the same border-bottom as in the links about the post attributes like author and categories.

    Example: if you go to this post: http://beisbolsantboi.com/campeoanto-nacional-de-beisbol-cadete-2014_6397/ probably you don’t appreciate that the “Calendario 2014” text is a link.

    If I add the custom CSS:
    .article-body-wrap a{border-bottom: 1px dotted #357ebc}

    It doesn’t apply to the pages like this one: http://beisbolsantboi.com/acerca-de/

    but if I put the custom CSS like:
    . page-content a{border-bottom: 1px dotted #357ebc}

    It’ll apply even to the previous and next posts links in the post details page, or the home posts carrousel “previous” and “next” buttoms, which is something weird.

    Is it any way to do it “cleanly”?

    Thanks!

    #114304
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Try create links like this.

    <a href="" class="underlinestyle">Calendario</a>

    then add this in the Custom CSS.

    .underlinestyle { text-decoration: underline; }

    Let us know,

    Thanks,
    laranz.

    #114790
    JavierCane
    Member
    Post count: 45

    Hi,

    Yes, for sure it’ll work, but I’m wanting a way to do that without having to edit *all* the links of my site adding a new class.

    Thanks

    #114800
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    .single-post div.page-content div.body-text p a{text-decoration:underline !important;}
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #114819
    JavierCane
    Member
    Post count: 45

    Hi Mohammad,

    Your CSS work out for posts content, but it doesn’t work for pages.

    You can see it here:

    If you want to test the selector, just go to the single page I’ve linked, open the browser console, and type it as a jQuery selector like that one:

    jQuery('.single-post div.page-content div.body-text p a');

    BTW: Thanks for your support, you’re being very helpful ๐Ÿ™‚

    #114835
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can use this code also for page.
    div.page-content div.body-text p a{text-decoration:underline !important;}
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #114864
    JavierCane
    Member
    Post count: 45

    Hi,

    It doesn’t work. In order to be specific, it doesn’t work for the page I previously specified: http://beisbolsantboi.com/acerca-de/contacto/

    There’re no <p> tags, so it’s impossible that the links match the CSS selector.

    I would like to highlight the fact that you can test the selectors as I said before ๐Ÿ™‚

    Thanks!

    #114874
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    div.page-content a{text-decoration:underline !important;}
    Thanks

    #114889
    JavierCane
    Member
    Post count: 45

    Hi,

    According to this article: http://css-tricks.com/efficiently-rendering-css/

    Doesn’t should be better to set the selector as:
    .page-content a{text-decoration:underline !important;}

    Thanks a lot again Mohammad!

    #114914
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It is perfect in rendering because it is only for small content area.
    Thanks

    #114921
    JavierCane
    Member
    Post count: 45

    Are your referring to your selector or the one I proposed? ๐Ÿ˜›

    #114935
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am referring to my selector.
    Thanks

    #114937
    JavierCane
    Member
    Post count: 45

    Alright, perfect!

    Thanks!

    #114941
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

    – Kyle

    #114943
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register