Jump to content


Photo
- - - - -

.pledit Without Parenthesis?


Best Answer Jenny , 30 November 2012 - 07:10 PM

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.

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 30 November 2012 - 05:43 PM

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?

Attached Files



#2 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 30 November 2012 - 06:04 PM

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. :)



#3 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 30 November 2012 - 06:46 PM

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



#4 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 30 November 2012 - 07:10 PM   Best Answer

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..

Please Login or Register to see this Hidden Content

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

 

Learn where to add your code at

Please Login or Register to see this Hidden Content

.


  • Denis Ciumbargi likes this

#5 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 30 November 2012 - 07:27 PM

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..

Please Login or Register to see this Hidden Content

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

 

Learn where to add your code at

Please Login or Register to see this Hidden Content

.

 

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.



#6 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 30 November 2012 - 07:37 PM

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

 

Please Login or Register to see this Hidden Content

 

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

 

Please Login or Register to see this Hidden Content

 

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



#7 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 30 November 2012 - 07:38 PM

Oh, and I showed Simon what you wrote. :)



#8 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts
  • Framework Version:DMS Pro
  • Country: Country Flag

Posted 30 November 2012 - 07:46 PM

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

 

Please Login or Register to see this Hidden Content

 

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

 

Please Login or Register to see this Hidden Content

 

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