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

Gutenberg adding references not working #547

Closed helen-oneill closed 5 years ago

helen-oneill commented 5 years ago

ABT Version: 5.0.3

PHP Version: 7.2

Theme: Maisha

Browser: Google Chrome Version 72.0.3626.119

I am having trouble inserting references into text on pages. I follow the method I used previously (before Gutenberg) consisting of:

  1. Export references from Endnote as .txt, file
  2. Make any edits (I sometimes need to add italics). Save at .ris
  3. Using the ABT 'import' button, import the file into the reference list. References appear
  4. Put the text cursor in the text where you want to add the reference and click 'add reference' (+).

It then asks for a DOI, PMID or PMCID or an option to 'add manually'. I frequently have ISSN's recorded in Endnote but not the others, and it seems it wont let me upload it without it. What is going on/what am I doing wrong? Can someone help?

Thanks, Helen

dsifford commented 5 years ago

This is not enough information for me to be able to even begin figure out what is going on. If you'd like you may reopen this with more detailed information.

helen-oneill commented 5 years ago

Hi Derek, thanks for the reply. The coding caught me out and hid the remained of my question, apologies for this. I have amended it so hopefully you now may be able to help.

Best wishes, Helen

dsifford commented 5 years ago

Thanks @helen-oneill... The issue I think you're having is you're attempting to "insert" references, but you're clicking the "add reference" button.

Here's an example:

https://www.useloom.com/share/9ec376632142463ab775db89f1a4ecff

helen-oneill commented 5 years ago

Hi Derek,

Thanks for your email and for the video. I can see now what is happening – you were correct in thinking that I was selecting the ‘add reference’ button instead of the ‘Insert citation’ button, however the ‘insert citation’ button disappears when the content block type is ‘Custom HTML’, in either ‘HTML’ or ‘preview’ mode.

I made a Loom for you too: https://www.useloom.com/share/1703a91e663b4e989efb74ed9cd4e202

Cheers, Helen

From: Derek Sifford [mailto:notifications@github.com] Sent: Tuesday, 5 March 2019 3:18 AM To: dsifford/academic-bloggers-toolkit academic-bloggers-toolkit@noreply.github.com Cc: O'Neill, Helen (NCMI, Hobart) Helen.O'Neill@csiro.au; Mention mention@noreply.github.com Subject: Re: [dsifford/academic-bloggers-toolkit] Gutenberg adding references not working (#547)

Thanks @helen-oneillhttps://github.com/helen-oneill... The issue I think you're having is you're attempting to "insert" references, but you're clicking the "add reference" button.

Here's an example:

https://www.useloom.com/share/9ec376632142463ab775db89f1a4ecff

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dsifford/academic-bloggers-toolkit/issues/547#issuecomment-469313577, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AjYNghD874g6AlKFfdJ5fdTvBv0qkxndks5vTUcwgaJpZM4bYPqF.

dsifford commented 5 years ago

@helen-oneill Ah, yep, that's by design. There's no way the plugin can manage or even be aware of citations inside a custom HTML block, unfortunately.

The same is true for shortcode blocks.

helen-oneill commented 5 years ago

Ok I have found a solution that seems to work by mikeicode on this issue thread: https://github.com/WordPress/gutenberg/issues/6833

mikeicode wrote:

"You can achieve this with CSS.

If you add the following CSS at Appearance → Customize → Additional CSS:

/ --- Justify Text Option --- / .justify-text { text-align: justify; } Then in the editor when you have a block selected you can add the CSS class justify-text in the right bar under "Advanced", example: https://snag.gy/SKIoHe.jpg "

I can now insert citations into justified text without issue.

image