Comments (7)
I just confirmed that the edit button shows up on all articles if an author is logged in, when in the admin panel a logged in author can only edit their own articles. I consider this pretty major
from wordpress-bootstrap.
I think this commit causes the issue:
acc7ce0#single.php
edit_post_link
handles displaying the Edit link to authorized users automatically.
from wordpress-bootstrap.
In order to get the nice button the <a tag needs the label, so an override for the eodt_pos_link should be made. Starangely enough the button shows only up on Chrome/linux, I did not see it on my windows machine.
from wordpress-bootstrap.
You can get the custom class on edit_post_link by doing this in functions.php
/* Add class to edit button */
function my_custom_edit_post_link($output) {
$output = str_replace('class="post-edit-link"', 'class="post-edit-link btn btn-success"', $output);
return $output;
}
add_filter('edit_post_link', 'my_custom_edit_post_link');
from wordpress-bootstrap.
To be more precise (to get the hover effect)
/* Add class to edit button */ function gk_edit_post_link($output) { $output = str_replace('class="post-edit-link"', 'class="post-edit-link btn btn-success" style="display: none;"', $output); return $output; } add_filter('edit_post_link','gk_edit_post_link');
from wordpress-bootstrap.
My hover effect works without that extra style. If by hover effect you mean the subtle color change? In fact, your code makes my button not show at all.
from wordpress-bootstrap.
I'm sorry you are right. no "display:none" needed...
Oops I spoke too soon, with display:none it does Sweet FA, without it the button always shows. Might be a plugin I use (code used on devel.kuilder.net/bootstrap in the first child theme. (and I am logged in as admin.) I had it working for a bit....
And originally the button would only who when you hovered over p-arts of the article.
from wordpress-bootstrap.
Related Issues (20)
- Javascript Live Reload
- Main site down HOT 1
- Cannot access global $wp_query;
- Can't make it work on windows+wamp HOT 2
- Font Awesome not working HOT 8
- Drop down menu isn't working HOT 2
- Nav Item > Child > Child does not open on click HOT 5
- Is development on this theme dead? HOT 22
- Keeping npm and bower up to date HOT 2
- Can use this themes in shared hosting ? (cant npm) HOT 3
- How to Change default boostrap theme to bootswatch cyborg
- Importing Custom fonts in theme
- Wrong call for previous and next posts link in index.php
- Where Are [caption] tags being stripped put
- Limited number of Menus
- I recommend moving to this project
- second level menu not working HOT 2
- Demo Not Working
- collapsed menu
- I'd like to update the versions and documentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-bootstrap.