Jump to content
Denis Ciumbargi

.pledit Without Parenthesis?

Recommended Posts

Denis Ciumbargi    3
Denis Ciumbargi

Hi, is there any way i can remove the parenthesis (hope they are called like this) from the edit command?

 

I would like to have the simple edit text with no () before and after.

 

I managed to edit the .pledit button to look as i want it to but looks bad with the (). Also cannot make the font-style normal even with !important. Is there any css inherited?

post-31546-0-72513900-1354297357_thumb.p


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

Hi Denis. It would have to be edited with PHP code, however no one sees that except for administrators of your site, so you shouldn't need to worry about it. To test, logout as admin. :)


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
Denis Ciumbargi    3
Denis Ciumbargi

Hi Denis. It would have to be edited with PHP code, however no one sees that except for administrators of your site, so you shouldn't need to worry about it. To test, logout as admin. :)

 

Hi Jenny, thank you. I know that it is only the logged in administrators can see that but for some clients that would also like to have admin roles that thing will appear and it is not ok as long as i have to design it as a nice button. That will also appear for some editors and authors so again, details like that matters to me. Which php code and that might mean un update will ruin the edited code?... mhmmm


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

Simon has added a filter to 2.3.7 for you. You won't be able to use it until 2.3.7 is released, but here ya go..

add_filter( 'pagelines_pledit_filter', function() { return '%s'; });

^^^ that will make it just "edit" without the ( ).

 

Learn where to add your code at How to Add Customization.

  • Like 1

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
Denis Ciumbargi    3
Denis Ciumbargi

Simon has added a filter to 2.3.7 for you. You won't be able to use it until 2.3.7 is released, but here ya go..

add_filter( 'pagelines_pledit_filter', function() { return '%s'; });

^^^ that will make it just "edit" without the ( ).

 

Learn where to add your code at How to Add Customization.

 

Ok, now i love you and Simon more! Do tell him that from me please. A filter just for me? Wow! Love love love! Thank you!

 

The one minor thing that makes me look stupid remains, cannot find from where the inherited italic comes. I must be tired. If you have anything on that one also i would really appreciate the support. The !important also does nothing.

 

And i will edit my child theme with the code once 2.3.7 comes out. Thank you for that again. Pagelines in Romanian is coming great also, everyday, the mo / po files are updated on my server. Hope to be something you can use after all you are giving us.


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

The italics are hard-coded in the theme. You can overwrite them with CSS. Here is the section of code:

 

<a class="pledit" href="#">
  <span class="pledit-pad">
    (
      <em>edit</em>
    )
  </span>

 

To overwrite default CSS, always add a #page to the front. You can try something like:

 

#page a.pledit em {
    font-style: normal;
}

 

I have not tested that ^^^ but it should work.


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
Denis Ciumbargi    3
Denis Ciumbargi

The italics are hard-coded in the theme. You can overwrite them with CSS. Here is the section of code:

 

<a class="pledit" href="#">
  <span class="pledit-pad">
    (
      <em>edit</em>
    )
  </span>

 

To overwrite default CSS, always add a #page to the front. You can try something like:

 

#page a.pledit em {
    font-style: normal;
}

 

I have not tested that ^^^ but it should work.

 

 

.pledit em {
    font-style: normal;
}
 
That is what worked great. Officially satisfied.
 
I will mark this as solved, thank you so much guys. I will wait for the 2.3.7. Or i will come back with other questions :)

I really need to take you guys out someday to say thank you with a beer in hand! :D


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×