jamezon
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks again Hector.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks Hector,
Without your help I would not have been able to solve the problem.
I converted the code to a plugin like you suggested and installed everything on a brand new domain. Got all sorts of errors. Then I deactivated the plugin and the shortcode worked.
After a long investigation, I finally traced the problem to the following:
If you enable the Ajaxify widget in the tools section of your plugin, then the shortcode will not execute in the sidebar. I had it enabled because of WP Super Cache.
Thanks again for your help.
James
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks.
No more errors but still not working with the Tortuga theme.
Where in the functions file should I place the code?
I placed the code at the bottom; obviously not the right place.
I feel that we are almost there.
Thanks,
James
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginHi Hector,
I did what you said.
Got the following:
[Large code excerpt removed by moderator per forum guidelines. Please use Pastebin or a Gist for all large code excerpts, they work better anyway.]
Now I am stuck. It still does not work.
Thanks again.
- This reply was modified 8 years, 9 months ago by James Huff.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks Hector.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks Hector,
I added the code to the bottom of my functions file (I hope that’s what you actually meant I must do)
The popular post plugin refused to work at all and some pages gave me a parse error on this line:
$permalink = get_the_permalink( $p->id );Thanks again for your help.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks.
I’ll leave it up for now.
Hopefully you will find an answer.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginThanks.
As you can imagine, it is extremely annoying.
Forum: Plugins
In reply to: [WP Popular Posts] Adding shortcode to PluginHi Hector,
In my post title, in the H1 tag, I add a date automatically by using a shortcode [datetoday].
So if my if my post title is:
“How to Understand Shortcode [datetoday]”it shows as:
“How to Understand Shortcode 2017”When this heading gets pulled into the widget, this is what it shows:
“How to Understand Shortcode [datetoday]”See how it looks currently in the popular posts widget:
http://www.spyequipmentguide.com/Thanks,
James
Forum: Developing with WordPress
In reply to: Adding shortcode to widgets (Not the text widget)Thanks Steve.
Forum: Plugins
In reply to: [WooCommerce] Free and paid shipping to be added together WooCommerceThanks for your help Claudio.
I have solved it after many hours of hardship.
In order to enable two or more shipping methods for multiple items on the same cart, you have to install the Multiple Packages for WooCommerce plugin which you can obtain directly from the WordPress plugin downloads after you search for it.
Make sure that you have defined the various classes that you want and assign each product to its own class.
Make sure you have the Woocommerce Advanced Free Shipping plugin installed to hide other shipping methods when free shipping becomes available (hiding must be selected within the plugin), otherwise your cart will look cluttered once the free shipping kicks in, since it will generate an extra radio button for free shipping which then has to be selected by the customer.
The Multiple Packages for WooCommerce plugin will provide three options (4 if you have installed the Woocommerce Advanced Free Shipping plugin). The options are as follows:
Flat Rate
Free Shipping
Local Pickup
Free Shipping (configurable per rate) – Listed when Advanced Free Shipping plugin is installed.If you want free shipping and your class is called “retail”, then you must select and tick both the Flat Rate and the Free Shipping configurable per rate). If you don’t have the advanced free shipping plugin, select Flat Rate and Free Shipping.
For the other classes, just select Flat Rate.
Forum: Plugins
In reply to: [WooCommerce] Free and paid shipping to be added together WooCommerceWoocommerce has the same functionality as the “advanced free shipping plugin” except that it does not hide the other shipping methods.
Therefore it is not the plugin that is causing the problem, since I have also tried it without the above mentioned plugin.
Forum: Fixing WordPress
In reply to: Change size of H3 for Responsive ThemeThank for all the help so far. I am targeting all the h3 elements.
I changed it to this and even added px as a variation:
@media (max-width: 767px) { h3 { font-size: 10%; } }No change. The H1 tag still works if I make changes.
With regards to the browser inspection tool… I have already been using it with great results to figure out design changes.
I had a look at the specific element code in the browser again but it is above my level of understanding to figure out if another code overrides that specific element in the responsive mode.
Forum: Fixing WordPress
In reply to: Change size of H3 for Responsive ThemeHi Adeline,
Thanks.
Tried it, but it still refuses to change. Tried both em and %. The interesting thing is that it does change the title size (H1), but not the H3.
Perhaps my code is wrong? I even removed the comma after the .h3… still nothing.