Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Now that you have the Swift Framework plugin, what should I do about updates to the single-post.php file? Will the plugin over-write these?
Well, I understand now that this is due the being wrapped in a
<script>
tag.Where is the best place to put this CSS include? I can include in the header.php, but that will be overwritten on updates.
Thanks,
Any word when the update will hit? Or can you give me the style fix now so we can fix the issue?
Any when is that anticipated?
Thank you. Looking forward to the fix. Will you post here, or is this part of an update?
Ok I’ll just restyle that shortcode and use that then.
The question still remains of the issue with the DropCap shortcode. Can you address that, please? (see above a few posts)
Attachments:
You must be logged in to view attached files.I’m using
[HR]
in other areas. Are you saying I cannot use a standard<HR>
TAG?This reply has been marked as private.Ok, I’ll ensure that’s the culprit.
Anyone?
Kyle —
We had a similar conversation in another support thread. No. I need to use the posts, as this is a blog with a lot of content that’s been migrated to this theme. Thus it’s not realistic to have to try to rebuild every post with the page builder.
Issue with dropcap shortcode removing paragraph styling:
The other post with the HR tag in a column is not yet public/published, so I cannot send URL. If you use any of your themes, and place an HR tag in a column created with the columns shortcode, you will see what I mean.
One more shortcode/style related issue:
When I use a dropcap shortcode, it removes the paragraph spacing from the paragraph it was used in. (see the image attached that shows two paragraphs without the spacing between paragraphs.
Can you assist with this as well, please?
Attachments:
You must be logged in to view attached files.Ok, well, I figured it out. Seems this is an issue with WordPress core. You can fix by adding the following to your functions.php
add_shortcode('wp_caption', 'fixed_img_caption_shortcode'); add_shortcode('caption', 'fixed_img_caption_shortcode'); function fixed_img_caption_shortcode($attr, $content = null) { // New-style shortcode with the caption inside the shortcode with the link and image tags. if ( ! isset( $attr['caption'] ) ) { if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', $content, $matches ) ) { $content = $matches[1]; $attr['caption'] = trim( $matches[2] ); } } // Allow plugins/themes to override the default caption template. $output = apply_filters('img_caption_shortcode', '', $attr, $content); if ( $output != '' ) return $output; extract(shortcode_atts(array( 'id' => '', 'align' => 'alignnone', 'width' => '', 'caption' => '' ), $attr)); if ( 1 > (int) $width || empty($caption) ) return $content; if ( $id ) $id = 'id="' . esc_attr($id) . '" '; return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style="width: ' . $width . 'px">' . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>'; }
I found this, and it looks to be the same issue that I am having:
http://troychaplin.ca/2012/fix-automatically-generated-inline-style-on-wordpress-image-captions/ -
Posted in: We hit Power Elite.