Forums

[Plugin: NextGEN Gallery] - How to control widget title (6 posts)

  1. macfeegle
    Member
    Posted 3 years ago #

    Not sure if this is related to the nextgen-plugin or the theme used (Atahualpa) but:

    I have two WordPress sites both with the exact same setup, WP 2.7, Atahualpa theme and NextGen gallery plugin (a.o.). The weird thing is that on one of them the title of the NextGen widget is taller/larger than all other widget titles, and I can't seem to resize it. I tried changing the widget-title value in the theme-options, and every title changed accordingly, *except* for the NextGEN widget. Deleting an re-adding the widget doesn't resolve this. Tried editing nggallery.css by adding font-size: 1.0em to match the rest of the titles, but also to no avail...
    see macfeegle.net to see what I mean.

    Second weird thing: on the other (intranet) WP blog, changing the theme option *will* change the nextGen widget's title...

    Where / how can I control the look of the NextGen widget title?

  2. Alex Rabe
    Member
    Posted 3 years ago #

    Normally via CSS, please post a link

  3. onracing
    Member
    Posted 3 years ago #

    Hi!
    I have the same problem. Have you solved yours?

  4. Junglefrog
    Member
    Posted 2 years ago #

    Hi, I have the same issue. I know this is an old post but did this get resolved and how did it get resolved?
    Thanks

  5. mdrapkin
    Member
    Posted 2 years ago #

    Did anyone get a solution to this? I'd like the NextGEN widget title match my theme:

    http://www.drapkininstitute.org/

    See "Gallery" in the right sidebar...

    Thanks,

    mld

  6. mdrapkin
    Member
    Posted 2 years ago #

    Well, I didn't see a response, so I went ahead and hacked the widgets.php file, and fixed it for me.

    In function ngg_widget_output, I changed the code to:

    if ( $webslice ) {
    //TODO: If you change the title, it will not show up in widget admin panel
    $before_title = "\n" . '<div class="widefat" id="ngg-webslice" ALIGN=CENTER>' . "\n";
    $before_title .= '
    <h5 class="widefat">';
    $after_title = '</h5><hr>';
    $after_widget = '</div>'."\n" . $after_widget;
    }

    echo $before_widget . $before_title . $title . $after_title;

    Crude, but it solved the problem. Doesn't seem to pick up the widefat class that all the other plugins follow, and I suggest making a copy of this file prior to modifying it.

    Now it matches our other plugins. I apologize for using such a heavy-handed solution.

    mld

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.