Is there a way to enable Lightbox Plus for use in widgets, and if so how would I do this?
(It’s working on normal pages just not when I paste the code inside a text widget.)
Code im using for the widget:
<a href="https://locationofexternalwebpageitrytoopen.html" class="lbp_secondary" rel="lightbox[secondary-demo]" title="Some nice and fancy title">Click here</a>
Thanks & Cheers,
Matthijs
https://www.ads-software.com/plugins/lightbox-plus/
]]>My code looks like this, it’s a text wideget:
https://scr.hu/7y8j/g1v3a
<h3 class="tm-panel-title-large">Get In Touch</h3>
<p class="uk-article-lead uk-margin-large-bottom">Subscribe to our newsletter for regular updates or contact us.</p>
<form class="uk-form">
<fieldset data-uk-margin>
<input id="email" type="text" class="uk-form-large">
<button id="signUp" class="uk-button uk-button-large">Sign up</button>
</fieldset>
</form>
How can i make this code to work with freshmail. Can I make them the same id that my freshmail popup have, but i can’t fint the ids. Maybe there is other option to achive it?
Second question:
Is it possible to make such form in freshmail widget?
https://scr.hu/7y8j/eor05
That inputs are one by one, not under?
https://www.ads-software.com/plugins/freshmail-newsletter/
]]>In the widget function code, there is a line that says:
function widget( $args, $instance ) {
extract($args);
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
$text = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance );
echo $before_widget;
if ( !empty( $title ) ) { echo $before_title . '[' . $title . '] ' . !empty( $title ) . $after_title; } ?>
<div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div>
<?php
echo $after_widget;
}
The Boolean at the !empty($title)
is supposed to pass a 0 if the $title has no value, but for some reason, it returns a 1. I have looked in the database and everything and can not ascertain what is the challenge.
(I added the brackets to test the issue)
Any ideas friends? I do have PHP Text Widget installed, but it is using the stock textwidget codebase.
]]>I have adjusted the width of the right hand side sidebar in (a child theme) of twenty ten to 300px.
Underneath the Facebook like box, I have added a banner in a text widget and was expecting to see it in 300px width as well….but I am not!
Can somebody please advise how to make sure the width of this text widget is displayed at 300px?
Thanks so much in advance!
This is the url to the page: https://www.musical-creations.com/english/
]]>I used Firebug a lot and I’ve also done lots of tries but nothing!
In particular, as Firebug said, the class of the text seems to be “textwidget”, but adding a color to this class doesn’t change anything.
I managed to change the widget-title, but not the text.
Thanks in advance =)
]]>Please help me! I′m lose so much money.
]]>I know I want to emulate what sidebar.php does (declare some default widgets that are turned on when you activate the theme; adding anything via the widgets panel overrides these defaults). I tried just pasting in the code from sidebar.php: works fine, but that code is for widgets such as the archive one, not the text widget, leaving me stumped on how to add the sample text.
This page (https://codex.www.ads-software.com/Function_Reference/the_widget#Text_widget) says I should follow the format
<?php?the_widget('WP_Widget_Text',?$instance,?$args);??>
with default usage for the text widget looking like
<?php?the_widget('WP_Widget_Text');??>
so currently my header.php (where the customized widget area in question resides) includes this code:
<?php
if ( ! dynamic_sidebar( 'about-text-widget' ) ) : ?>
<?php the_widget('WP_Widget_Text'); ?>
<?php endif; ?>
My PHP-n00b question is: how do I alter that code so that there isn’t only a default text widget appearing in my widget area, but a default text widget containing default text?
This is a child theme of Twenty Ten, by the way, though I believe the question is not theme-specific. Much thanks for any advice!
]]>Here is the link to my website
https://hybridrooms.com/wordpress-3.0.3/wordpress/?page_id=2
I’m trying to move the text widget sidebar over to the right so that it does not get cut off. Also, I may need to move the post area over to the right as well. I’m using the diabolique theme. How do i accomplish this?
Thank you in advance.
]]>Regards
Andyy2k3
]]>