Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter DeirdreBunny

    (@deirdrebunny)

    Well, I think I found the answer – I had to edit:

    wp-content/plugins/anything-popup/anything-popup.js

    This was mentioned in another thread, but I didn’t think it would address the scrolling issue, but apparently it has.

    I’ll go over it in case anyone else has a similar issue:

    In “wp-content/plugins/anything-popup/anything-popup.js” look for the following code:

    formdiv.style.top = pt.y + "px";
        formdiv.style.left = pt.x + "px";
    
    	//formdiv.style.top = "200px";
        //formdiv.style.left = "550px";

    You need to remark out the top 2 lines, and then make the bottom two strings active, like so:

    //formdiv.style.top = pt.y + "px";
        //formdiv.style.left = pt.x + "px";
    
    	formdiv.style.top = "200px";
        formdiv.style.left = "550px";

    The popup positioning is based on the set pop up height and width (which you create in the “Anything Popup” section under Settings) so you may have to play around with those numbers. For example, my popups have a height of 400px and a width of 600px, so my code looks like this:

    //formdiv.style.top = pt.y + "px";
        //formdiv.style.left = pt.x + "px";
    
    	formdiv.style.top = "100px";
        formdiv.style.left = "350px";

    This positions the popup window in center of my browser, regardless of whether the main window is scrolled or not.

    I ended up adding a function to enable custom menus for the theme, then created the new menu items and drop downs through Appearance/Menus. Finally, I renamed the elements in my CSS to match the classes and IDs for the new menu.

    Here’s the code I added to function.php

    add_action('init', 'register_custom_menu');
    
    function register_custom_menu() {
    register_nav_menu('custom_menu', __('Custom Menu'));
    }

    Hat tip to: Think Vitamin

    Thanks Jimmy – I’ll take a look!

    Greetings,

    I have a similar issue. I have a client that I designed and built a WordPress site for, using a modified theme a few years ago. I think that may have been the TwentyTen theme. Today he emailed me asking if I could have his blog categories listed as a drop-down menu from the blog link on the main navbar. I know how to add pages as a drop down, by choosing a parent page, but I have no idea how to add a list of his blog categories as a drop-down on his navigation bar.

    I thought that maybe custom menus would save me, but under Appearance/Menus, I am seeing the following notice:

    The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.

    I looked at the wp_dropdown_categories, but I’m not sure this will do what I need, or if it will, how to implement it. Any advice on how I might go about adding categories as a drop down from the navbar (preferably under the blog menu item on the navbar).

    Thanks in advance!
    Deirdre

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    Still haven’t had any luck with this. I tried a few more plug-ins, such as ‘Better Excerpt’ which allows you to call a function for specific posts, allowing to change the excerpt length, but I couldn’t figure out how to target it to just one post (the first one) — also, it created double excerpts on my homepage.

    The developer of ‘Homepage Excerpt’ (the current plug-in I’m using) was planning on making it compatible with the ‘More’ tag, but mentioned that in 2007, so I don;t think it will be happening.

    Anyway, just updating and checking in to see if anyone had further suggestions.

    Thanks!

    ~Deirdre

    PS Here is a link to the site if it helps: https://hideoutmagazine.com/

    I have just installed version 2.9.2 for a client and had this same issue.

    I added ‘define(‘CONCATENATE_SCRIPTS’, false);’ to the wp-config.php file, as Alism suggested and it worked just fine.

    Thanks!

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    Oh! I see. I made the correction. Thank you — it is working just as you said.

    If you are ever in Portland, OR, I’ll make you dinner.

    =)

    Thanks!

    Deirdre

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    This is the error:

    Parse error: syntax error, unexpected $end in /hermes/bosweb/web032/b325/sl.alluramo/public_html/hideoutmagazine/HideOutMag2010/wp-content/themes/HideoutRetro/index.php on line 43

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    Hi Esmi –

    Thanks again for your help =)

    I am getting a syntax error when I use the above code, though.

    I tried adding a “>” at the end of this line:

    <div id="post-<?php the_ID(); ?>" class="post <?php echo $class; ?>"

    But still received an error.

    Here is the full index.php file with the code inserted:

    <?php
    /**
     * @package WordPress
     * @subpackage Classic_Theme
     */
    get_header();
    ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php the_date('','<h2>','</h2>'); ?>
    
    <?php $class = 'posn';
    $c = 0;?>
    <?php if (have_posts()) : while (have_posts()) : the_post();
    $c++;
    $class .= $c;
    ?>
    <div id="post-<?php the_ID(); ?>" class="post <?php echo $class; ?>">
    
    	 <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    	<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    	</div>
    
    	<div class="feedback">
    		<?php wp_link_pages(); ?>
    		<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    	</div>
    
    </div>
    
    <?php comments_template(); // Get wp-comments.php template ?>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php posts_nav_link(' — ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
    
    <?php get_footer(); ?>

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    I will give this a try – thanks so much for your prompt response!

    ~Deirdre

    For other people looking for info on this, Michael H. had it right, but I had to remove his “{” otherwise it was invalid and creating a syntax error.

    I removed the original date tag beneath title in the index and replaced it with:

    <?php if (in_category('blogs')) the_date('','<h2>','</h2>'); ?>

    Then I created a category called ‘blogs’ and made sure all of my posts had that category checked.

    Now, if all goes well, only items in the category ‘blogs’ will show post dates. You just have to remember to tick of that cat every time you make a new post (along with whatever other categories you want to tick off).

    There are other methods to do this when there is a page.php file, but if there isn’t try the above method — I often start my custom themes from the classic theme, and the classic theme doesn’t include a page.php.

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    Thanks!

    Thread Starter DeirdreBunny

    (@deirdrebunny)

    Because the theme my client installed does not call up the file in the usual way. Regardless, I tried using the standard code (and many variations thereof) in the header to pull up the style sheet, and it had no effect. So, while searching, I found some information about that theme and it was recommended to use function.php to call the CSS.

    I just logged i to update people in case they had a similar question – I have finally met with success. I was using <!–[if lt IE 6]> not realizing that “lt” meant versions *less* than 6, not 6 itself – which is why IE6 was not showing any change. I replaced the 6 with: <!–[if lt IE 8]> to target versions prior to IE8, and that did the trick.

    Thanks for the link, I will keep it around for future use.

    Hello,

    I may be able to answer the first part of your question: In the style sheet for your theme, the h4 styles may be overriding the Album Title color in the NexGen plugin. That’s what was happening in my case.

    ~Deirdre

Viewing 14 replies - 1 through 14 (of 14 total)