Not clear how to use shortcode parameters
-
Hi I love your plugin, it’s beautiful and light. I am confused on how to add the shortcode parameters that I see in the documentation. For instance I want the Title and maybe a description to show up when they pick a card. How do I make that happen? I see the parameters like show_title but I don’t know what to do with it. Where do I put it? Do I have to add some code somewhere or am I adding the parameters to the actual base short code? Sorry I’m not really familiar with the process.
Thank youThe page I need help with: [log in to see the link]
-
Hi @lifeit
thank you very much for using our plugin.
If you want to show the title you need to add the parameter show_title to the shortcode in this way:
[oracle_cards deck=”1″ show_title=”true”]
In your case, the parameter deck may be different than 1. This is the ID of your deck. As you can see the values of the parameters are between the double quotes.
You can also go to Oracle Cards, edit the deck and click on “Customize shortcode” as you see in this picture:
Then you will see a popup like the following picture:
After clicking on “OK” you will have the shortcode according with your choices.
The actual version of the plugin has no parameters for the description. It just shows it if in the single card you have a description, and it doesn’t show it if there is no description.
You can add a description by editing the single card from Oracle Cards => All Cards.Let me know if something is not clear.
Have a great day!
Jose
I was forgetting. You theme misses the CSS to center the button.
If you can add custom CSS, I suggest you add this:.center{text-align:center}
In any case, the next version of the plugin will solve this issue with themes that don’t provide that CSS, and you will not need anymore to add it yourself. Take into account that the next version will be published in around 1 week.
Have a great day!
Jose
Hi, thank you so much for answering my question. I might have a conflict with one of my other plugins because when I put in the shortcode [oracle_cards deck=”79″ show_title=”true”] it made the cards disappear from the page and not show up anymore. I added the regular shortcode [oracle_cards deck=”79″] and it came back??. Also, when I clicked the “Customize Shortcode” button nothing happens or pops up for me. I use Thrive Suite plugins and themes.
You are welcome @lifeit
Be careful, if you have copied the shortcode from my comment you may have copied the wrong double quotes. If so, I suggest you delete the double quotes and write them again manually. This support forum may output the double quotes with characters that are not accepted on your site to run the shortcode.
If the suggestion above doesn’t help, can you create a new testing page where you add the shortcode, and then share the URL? So, I can try to understand why the deck doesn’t appear.
About the other issue with the popup, please follow these steps:
- Go to the settings page where you have the button “Customize Shortcode”
- Click on the button “Update” (see the picture)
- Right-click and click on Inspect
- Click on “Console”
- Click on “Customize Shortcode”
Do you see any red errors? If so, can you please share them?
Have a great day!
Jose
Yayyy thank you that works me typing it in, instead of copy and paste!
Okay for the button there was a yellow warning. I copied the text it would let me. Is this what you’re asking for?
Here are pictures: https://photos.app.goo.gl/fDDvpmVVdj2xjUUR8 and https://photos.app.goo.gl/ibXj6z9B3vB7MpYm7
What text I could copy said:
Deprecated Feature Used
Event.path is deprecated and will be removed. Please use Event.composedPath() instead.Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform
Deprecated Feature Used
Event.path is deprecated and will be removed. Please use Event.composedPath() instead.
1 source
tinymce.min.js:2Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform
A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
Note that for performance reasons, only the first access to one of the properties is shown.
1 sourceThank you @lifeit !
The cause of the issue with the “Customize Shortcode” button may be a conflict with another plugin or the theme, or with a browser extension.
Checking the second possible cause is easy, just try to log in with a different bowser, and see if you still have the same issue.To check if another plugin is conflicting with Oracle Cards I suggest you do the following steps:
- Install Freesoul Deactivate Plugins
- Go to Freesoul Deactivate Plugins => Backend => Plugins Manager => Backend => Backend URLs
- Add a row and type *term.php?taxonomy=decks&tag_ID=*
- Disable all the plugins, but keep Oracle Cards
- Save
Then check again if you still have the same problem.
Here you can watch a short video that shows you how you can use Freesoul Deactivate Plugins to disable all the plugins in the Oracle Cards settings page:
In your case you may need to keep active also the plugins that are required by the theme to don’t trigger fatal errors. In any case, the plugins will be deactivated only in the settings page of Oracle Cards. You will not risk anything on all other pages both in the backend and frontend.
I would try first disabling all the plugins but Oracle Cards, and if you have fatal errors, keep active also the plugins required by the theme.If nothing help I will try to reproduce the same problem with your theme and builder. In that case I will kindly ask you to provide me the theme and the builder if possible.
Let me know if something is not clear.
Have a great day!
Jose
Okay, thank you. I checked it by logging into another browser and the button still didn’t work. I also checked my demo site where I installed the plugin that also has Thrive Themes installed and the “Customized Shortcode” button worked until I used it to change the shortcode then it no longer worked.
I installed it on another demo site also with Thrive Themes and it did the same thing.
I installed the FreeSoul Deactivate Plugin on my Demo Site and deactivated all of the plugins except the oracle card one, but nothing changed.
One of the demo sites I tested had no other plugins outside of my Thrive Suite Plugins and Theme Builder, Wordfence, and cache plugin (Breeze which is different from my other sites) installed.
So it’s probably something with Thrive Themes or Wordfence…
I also created a clean test WordPress new installation with no other plugins or added themes and tested it. The button works fine even after I customize the shortcode.
So I don’t know ?????♀?.
Also P.S. What CSS can I add to change the “Mix The Cards” Button?
Thank you
Thank you @lifeit !
So, it looks like a conflict with the Thrive theme. Is it possible for you to share a link to the zip of your theme? So, I can check it on our installation and try to reproduce the same issue. Maybe better if you use the contact form at https://josemortellaro.com/contact/ for sharing the link.
About the CSS for the button, here you have an example:
.oracle-cards-wrapper .button?{ background-color: rgb(22,46,68); color: #fff; border-color: rgb(22,46,68); font-family: Yantramanav; font-weight: bold }
Have a great day!
Jose
Okay thanks for the button CSS, I’ll try it. I may have to give you access to my site because Thrive Themes doesn’t use Zip Files anymore for their themes or plugins. They have a Product Manager Plugin you have to install and then connect to your Thrive account and then you can get access to everything.
Hi @lifeit
you are welcome! As you want. If you were able to add the deck, I think this issue with the button “Customize Shortcode” is more an issue for us rather than for you, and I would avoid to get access to your backend.
I will ask Thrive if they can give us a testing account to investigate this conflict.
But if for you it’s important, you need that the button works soon, and for you, it’s not a big problem to give access to the backend, you can write me a message with the contact form. In any case, I strongly suggest you don’t use this forum for sensitive information.
Have a great day!
Jose
Hi no problem, I’m good because I can add the shortcodes for functionality I was just trying to help. I’m sure Thrive Themes would be happy to help you resolve the conflict.
Thank you so much for the plugin and all of your help!Hi @lifeit
many thanks to you. I’ve already contacted Thrive Themes and informed them about the issue. They will check it and let me know.
Have a great day!
Jose
Awesome ??, you have a great day as well!
- The topic ‘Not clear how to use shortcode parameters’ is closed to new replies.