Elementor button links and photos have short code capability; But when I put the Digits shortcode inside, it doesn't work properly.
I put the Digits code in the dynamic link of buttons and photos in Elementor, but it doesn't work.
Related
I own a wordpress site consisting in a single homepage with many portion of texts each of those are common wp posts and have an achor link in their title. I need to create a search widget which will search for a text by title and when the results will be available and clicked the page will scroll to the result according to the anchor itself. I'm asking myself if it is possible
I wordpress, I have created a custom textarea field to paste in Youtube Embed Code for every Products under Woocommerce. I used ACF plugin for that. The backend is working fine and I am able to fetch the video embed code using below code.
$video_embed_code = get_field('video_embed_code', $post->ID);
if($video_embed_code):
echo '<div class="video-wrapper">'.$video_embed_code.'</div>';
endif;
This also works fine fetches video wherever needed. But I want to place it in the product gallery which is internally a combination of 3 plugins created by woocommerce
1. flexslider
2. photozoom
3. photoswipe
I want to add this video in this galley, so that it integrate finely with all the slides and when we click on zoom button, it loads the video using photoswipe plugin. I tried to look for woocommerce hooks but the only hook I found was to modify the flexslider settings like show/hide arrows, show/hide thumbnails etc.
I am a newbie in WordPress not totally but 6 months. So I am finding the new thing and practicing on WordPress. I want to know that how can I implement shortcode on click event means
I have buttons on my index.php page like this:
<button>Video</button>
<button>audio</button>
and with these video and audio buttons, I want to attach the WordPress inbuilt video and audio shortcodes and if I click on any of the two buttons.
suppose if I have clicked on video button the video tag appears under the video buttons and when I again click on video button the video the video tag again disappears.
I'm not completely sure if I understand what you want to accomplish with your buttons, but you can totally do that with shortcodes.
The use of shortcodes is one of the ways to expose functionality written in plugins/themes to users of a WordPress site. So you can write code to do what you want then create a shortcode for it:
function something_rad_function( $atts ){
return "Some RAD functionality";
}
add_shortcode( 'something_rad', 'something_rad_function' );
You can use the shortcode in a post or page with: [something_rad]. Also do_shortcode() may come in handy if you need external functionality available through shortcodes.
I have a clients website that uses a WordPress Genisis Framework Child Theme.
One of the widgets that are built into the theme is a featured page widget. It is placed on the front of the page. The widget gathers 250 characters and displays that on the front page along with the featured image from that page.
The problem is that because the next page only contains an iframe from another website the WordPress widget does not grab the text, so it leaves a nice blank hole on the clients homepage. The previous developer set it up this way and didn't bother to plug the hole.
Any ideas how I could get the text to display correctly.
I am familiar with most web languages and the WordPress back end so any suggestions would help.
You can try to place a hidden div on the page where you paste in the text that you want. It wont be dynamic if the integrated page changes but it could be a possible work around.
Is it possible to change shortcode appearance in Wordpress TinyMCE editor? One of my clients has no HTML knowledge and it's really hard to explain him what not to edit on subpages.
All I want is to hide the shortcodes and add a button on the kitchen sink to show them.
Work arounds.
1 - Filter content before displaying in the editor. Onclick of the button in kitchen sink, call the same url with a $_GET param e.g ?filter=false and do not filter the content this time.
2 - Wrap all shortcodes in a div with a specific class before displaying and toggle that class onclick of the button in the kitchen sink.
For both ways I need to get the content before displaying it in TinyMCE so that I can modify it. Unable to do so .. please help.
P.S: this needs to be done in a plugin. cannot modify core wordpress files.
You could use the tinymce param "setup" and create a onBeforeSetContent handler.
This way you can modify the content before it gegts into the editor and perform Action 2.