dsifford / academic-bloggers-toolkit

WordPress plugin providing an all-in-one solution for effective academic blogging.
https://wordpress.org/plugins/academic-bloggers-toolkit/
GNU General Public License v3.0
120 stars 38 forks source link

Custom citation style won't appear in the dropdown #556

Closed axibert closed 5 years ago

axibert commented 5 years ago

I uploaded a custom citation style and gave it a unique filename and title. I uploaded it in the settings but it can't be selected in the posts, because it does not appear in the dropdown list. What am I possibly missing here?

Thanks for your help, Alex

ABT Version: 5.05

PHP Version: 7.3.3

Theme: Sahifa

glorious1 commented 5 years ago

I find I have to type in the style name (not the file name, the name as given in the tag) until it is different from all the canned styles, then mine appears.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/axibert"><img src="https://avatars.githubusercontent.com/u/49692103?v=4" />axibert</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Yes, I tried exactly that, but for me it won't show up. I already tried it with two different styles but none appears. And when I just enter the full name as in the <title> tag and hit Publish it says incorrect citation style.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/glorious1"><img src="https://avatars.githubusercontent.com/u/6004417?v=4" />glorious1</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Just spitballing here - I would try running the style through the csl validator: <a href="https://validator.citationstyles.org/">https://validator.citationstyles.org/</a> Choose File upload to get it in.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/axibert"><img src="https://avatars.githubusercontent.com/u/49692103?v=4" />axibert</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Thanks for the tool, but sadly it does not solve my issue. I also just tried it with another popular citation style where I just changed the name and it still does not show up.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/axibert"><img src="https://avatars.githubusercontent.com/u/49692103?v=4" />axibert</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Would be great if the developer could look into this, I still cannot use custom styles.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/dsifford"><img src="https://avatars.githubusercontent.com/u/5240018?v=4" />dsifford</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>@axibert Can you share the custom style file here so I can take a look at it?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/axibert"><img src="https://avatars.githubusercontent.com/u/49692103?v=4" />axibert</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Sure, here it is: <a href="https://www.dropbox.com/s/tnseg3erc0jzm3u/testalex2.csl?dl=0">https://www.dropbox.com/s/tnseg3erc0jzm3u/testalex2.csl?dl=0</a> I just changed the name and the title to test it out, so it basically is an unchanged APA style. I tried various different style templates but I am never able to chose it in the dropdown.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/dsifford"><img src="https://avatars.githubusercontent.com/u/5240018?v=4" />dsifford</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>@axibert I can't reproduce this on my end in the block editor.</p> <p><img src="https://user-images.githubusercontent.com/5240018/56449000-5afa6100-62e2-11e9-83ac-b453b0ab9f71.png" alt="image" /></p> <p>I am able to reproduce in the classic editor, but that's not something I'm planning on fixing seeing as I'm planning on <a href="https://github.com/dsifford/academic-bloggers-toolkit/blob/master/CHANGELOG.md#important-note">removing support completely for the old editor in the next update</a> as it's becoming too much of a chore to maintain both codebases in tandem and WordPress no longer supports it either.</p> <p>I'd recommend checking out the block editor again. I know there's been some community resistance to using it, but if you haven't checked it out in a while you might be pleasantly surprised at how much it has improved and how quickly it continues to improve by the day. </p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>