Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Putting Code/Sign Up Form into Sidebar


  #1  
Old Jun 7, 2009, 09:57 PM
gradlebum
 
22 posts · May 2009
Hello All,

My question is 2 part.

Part 1 - I want to place a sign up form from my autoresponder into my sidebar, but as there is no sidebar.php, how do I do this. I can use javascript or html.

Part 2 - I only want certain things to appear on certain pages in the sidebar. So on page 1, I want one thing to show up that I do not want to show up on the other pages' sidebars, so how do I control content on the sidebars specific to each page?

Thanks loads for the help.
  #2  
Old Jun 8, 2009, 02:21 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
part 2 - see http://forum.bytesforall.com/showthread.php?t=1512
part 1 - what plugin are you using?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 8, 2009, 10:35 PM
gradlebum
 
22 posts · May 2009
Hey Juggledad,

I am using the following plugins: all in one seo pack, custom field widget, fckeditor for wordpress, google xml sitemaps, maxblogpress ping optimizer, my link order, my page order, nofollow links, wordpress automatic upgrade, wordpress database backup and youtube brackets.

Thanks.
  #4  
Old Jun 9, 2009, 03:53 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so which one is the autoresponder?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 9, 2009, 08:49 AM
gradlebum
 
22 posts · May 2009
I am obviously going to enter into the realm of confusion and the naivete. My autoresponder is through AWeber, but I had no idea I needed a plugin for this. What plugin would I need to use my autoresponder.

As another note - why is there no sidebar.php so that this theme is simpler to work with?

Thanks for your continued help Juggledad.
  #6  
Old Jun 9, 2009, 10:09 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
As I understand it, the functions of sidebar.php are incorporated in the rest of the code.

You can use the 'TEXT' widget to add what you need to a sidebar.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 16, 2009, 01:18 PM
El Marco
 
5 posts · Apr 2009
I am trying to add Viva Post Thumbs to my sidebar. It's a plugin that creates thumbnails to link to recent posts, rather than just the titles.

The instructions in the user guide say:
"4. Place this line of code where you want the carousel to appear in your
homepage.
<?php viva_carousel(); ?>

This writes a <div> tag containing the carousel - positioning it within the parent
<div> of the section of your site where you place the call."
I added a Text widget to the left sidebar with the prescribed line of code but nothing happened. Not sure what to try next.

Ideally I want the post thumbnails to show up on all the pages of my WP blog.
  #8  
Old Jun 16, 2009, 02:07 PM
owenl
 
44 posts · Jan 2009
the problem with putting <?php etc code in a sidebar is that widgets are designed NOT to use php code(!) But you can get around it easily by using the Exec-PHP plugin...
  #9  
Old Jun 16, 2009, 02:12 PM
El Marco
 
5 posts · Apr 2009
thanks, Owen. What/where is the Exec-PHP plugin? I am totally clueless, just tryin' to get by.
  #10  
Old Jun 17, 2009, 06:19 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
do a google search 'wordpress plugin Exec-PHP'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Jun 17, 2009, 06:50 PM
El Marco
 
5 posts · Apr 2009
The info for Exec PHP plugin looks kind of intimidating. Rather than dealing with it, instead of putting the code in as a text widget, I'm told that I may place the <?php line of code directly into my theme page "probably your sidebar.php file." Well, Atahualpa has no sidebar.php file that I can locate. Is bfa_theme_options.php under "// New category: sidebars" the right place to put the code? Or is the easier solution to go the Exec-PHP plugin route? Thanks in advance for any help.
  #12  
Old Jun 18, 2009, 04:25 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Put it into header.php (left sidebar) below or above this:
PHP Code:
            <?php // Widgetize the Left Sidebar 
            
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
        
                    <div class="widget widget_categories"><div class="widget-title">
                    <h3><?php _e('Categories','atahualpa'); ?></h3>
                    </div><div class="widget-content">
                    <ul>
                        <?php wp_list_categories('show_count=1&title_li='); ?>
                    </ul>
                    </div></div>
                    
                    <div class="widget widget_archive"><div class="widget-title">
                    <h3><?php _e('Archives','atahualpa'); ?></h3>
                    </div><div class="widget-content">
                    <ul>
                        <?php wp_get_archives('type=monthly'); ?>
                    </ul>
                    </div></div>
                                    
            <?php endif; ?>
or into footer.php (right sidebar) below or above this:

PHP Code:
<?php // Widgetize the Right Sidebar
    
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>

        <div class="widget"><div class="widget-title">
        <h3>Recent Posts</h3></div><div class="widget-content">
        <?php $r = new WP_Query(array(
            
'showposts' => 20,
        
//    'cat__in'=>array(14),
            
'cat__not_in'=>array(15,80),
            
'what_to_show' => 'posts',
            
'nopaging' => 0,
            
'post_status' => 'publish',
            
'caller_get_posts' => 1));
        if (
$r->have_posts()) : ?>
        <ul>
        <?php  while ($r->have_posts()) : $r->the_post(); ?>
        <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
        <?php endwhile; ?>
        </ul>
        <?php wp_reset_query();  // Restore global post data stomped by the_post().
        
endif; ?>
        </div></div>

        <div class="widget"><div class="widget-title">
        <?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div><div class="widget-content">'); ?>
        </div></div>

        <div class="widget"><div class="widget-title">
        <h3><?php _e('Meta','atahualpa'); ?></h3>
        </div><div class="widget-content">
        <ul>
            <?php wp_register(); ?>
            <li><?php wp_loginout(); ?></li>
            <li><a href="http://wordpress.org/" title="
            <?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
            <?php _e('WordPress','atahualpa'); ?></a></li>
            <?php wp_meta(); ?>
        </ul>
        </div></div>

    <?php endif; ?>
  #13  
Old Apr 26, 2010, 11:43 AM
ERP
 
4 posts · Apr 2010
Thanks for the info - I was able to ad some code into the right sidebar without using the text widget. However, How do I change the font size of what appears on the site? (I want it to be a little smaller)?
Also, is it possible to create several text widgets and place them in different spots in the sidebar?
  #14  
Old Apr 26, 2010, 12:39 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what v ersion of Atahualpa and WP?
What is the url?
what is the code you used?
you will need to use a CSS Insert
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #15  
Old Apr 26, 2010, 04:31 PM
ERP
 
4 posts · Apr 2010
I have the latest version 3.4.6 and am running the newest WP version 2.9.2. My URL is www.erstories.net. I used some basic html code that an advertiser sent me (it is here):
Suppliers of Durable Medical Equipment, Prosthetics, Orthotics and Supplies
are required by the Federal government to obtain a $50,000 <a
href="http://www.jwsuretybonds.com/surety-bonds/commercial-bonds/medicare_bond.htm">
Medicare bond</a>.

What is a CSS insert?

Is that how I can design multiple text widgets? Sorry, I am a noob to all this.

Thanks

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do people sign up as a user for a comment? nasu Page & Category Menu Bars 6 Jul 12, 2013 01:40 PM
Unable to use autoresponder form code in sidebar text widget TonyLogue Sidebars & Widgets 0 May 8, 2009 04:30 AM
Putting Adsense or RSS news feed in sidebar Equity Sidebars & Widgets 1 Apr 25, 2009 06:15 AM
[SOLVED] No sidebar.php...where do I put the code? d_random Atahualpa 3 Wordpress theme 0 Apr 3, 2009 01:42 PM
I'm not sure what file I need add code for the sidebar jockoe Atahualpa 3 Wordpress theme 0 Mar 18, 2009 10:45 AM


All times are GMT -6. The time now is 01:28 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.