Edit link classes in geodirectory_hooks_actions.php

This topic contains 4 replies, has 2 voices, and was last updated by  Alex Howes 5 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #441992

    Alex Howes
    Expired Member
    Post count: 175

    Hi GD!

    I want to style the “Edit” and “Favourite” links differently on single listings pages so I’ve changed the class names in geodirectory_hooks_actions.php on lines 391 and 481 (to edit_link_favourites and edit_link_edit). Could you add this to the code please? (I realise that there’s a requests list for code changes but this one is very small! :))

    Thanks!
    Alex

    #441996

    Guust
    Moderator
    Post count: 29970

    You should be able to just target them as they are for the moment?

    
    
    .single .geodir-addtofav a {font-size: 300%; color: blue}
    .single .edit_link a {color: orange}

    Thanks

    #442026

    Alex Howes
    Expired Member
    Post count: 175

    Unfortunately

    .single .edit_link a

    targets both the claim link and the edit link.

    Alex

    #442028

    Guust
    Moderator
    Post count: 29970

    That is why you make sure that .single .geodir-addtofav a has attributes that overwrite .single .edit_link a, for example with !important.

    #442029

    Alex Howes
    Expired Member
    Post count: 175

    .geodir-addtofav is a sub class of .edit_link
    The solution I suggested is simple. Don’t worry about it if it’s too much hassle.

    Alex

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket