tangobango
Forum Replies Created
-
In case someone else has this problem. here’s what to do:
In your function that creates the filter, use
do_shortcode( ' [email-subscribers namefield="NO" desc="" group="Public"] ' )
rather than
es_subbox($namefield = "YES", $desc = "", $group = "Public")
so you end up with a function like this:
function obia_output_email_subscribers_after_content( $content ) { if(( is_single() || is_page('read-from-the-beginning')) && is_main_query() ) { $output = '<div class="email-subscription-box">'; $output .= '<p class="email-subscription-box-title">Like What You Are Reading?</p>'; $output .= '<p class="email-subscription-box-copy">Join us and receive new posts by email.</p>'; $output .= do_shortcode( ' [email-subscribers namefield="NO" desc="" group="Public"] ' ); $output .= "<p class='email-subscription-box-disclaimer'>Unsubscribe anytime. No spam guarantee. We don't share our list."; $output .= '</div>'; $content .= $output; } return $content; } add_filter( 'the_content', 'obia_output_email_subscribers_after_content' );
Thanks for the reply.
I don’t want the subscription form in a widget area, but below the main content on each post, appended to the body of the post.
If I use the approach I indicated in my first question, I can add any text/html I want to the bottom of the content with $content .= $new_content. But I can’t get the subscription form to show up correctly. The problem likely is related to the output of the es_subbox function.
It’s really baffling that the filtering makes it show up twice in the wrong places. That shows, at least, that the html for the form is being created.
Does this make sense?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] How to Change Styles for Stacked Bar ChartFrom my own experience working with the plugin, most of these can be done and the “how to” is found in a combination of the Google docs and the plugin info and FAQ.
Also, if you want some guidance, I’d suggest you post what you’ve tried.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Datatables_scroll_x not working for meclass=”no-datatables” disables datatables, so the scroll parameter is meaningless.
Also, you need a semi-colon after width: 100%;
- This reply was modified 7 years, 5 months ago by tangobango.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Table too wideThe answer is very easily found in the FAQ or other notes section. Just read those.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Line BreaksYou’re right, of course. Sorry.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] All columns are not showingLook for “no-datatables” in the documentation. It’s all explained clearly.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Line BreaksCan you post a link to the page that I can access without having a login?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Call contents of single cell?To get rid of bold, you want font-weight: normal; in your css.
Are you using Firebug or something similar to isolate what you are trying to style?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Need helpIn the FAQ, look at the “query” parameter and the link to the Google documentation for using it. You should be able to write a query string that selects just the columns and rows you want using SELECT and WHERE.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Only enqeue scripts when plugin is used?Just a thought from another user, not the plugin developer:
You might want to look at the bottom of the “FAQ” page and the “Other Notes” section of the documentation under “Plugin hooks” and add a filter using is_page() to tune what gets loaded and where.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Need helpI’m not the plugin author, but I’ve played with charts quite a bit. And I know what the author expects in a question.
You could look at filtering your Google sheet to eliminate the values. It might work.
Also, maybe you can clarify the question more. For example, “only one column with date” since you have three date columns, some of which have data.
How are you imagining tha chart to look with 30 names? Stacked bar?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Having trouble enabling 2 vertical AxesThis may be too late to help, but at the very end of your first code you have
chart_series='{1:{"Axis": "T"}}'
That 1 needs to be quoted as “1”
chart_series='{"1":{"Axis": "T"}}'
In your second code, check your use of quotes, as well.
Hi, PageSpeed,
Thanks for the gracious response. I have upgraded php and I’ll try again.
Too bad about the WP spam issue, but great that you support on github.
Tangobango
No. I just didn’t use the plugin.
The “the error should be impossible” comment turned me off on it. “Should be” wasn’t the issue.
Maybe it was another plugin, but it wasn’t worth my time to figure it out.
Sorry I can’t help.