Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #3967

    Hi there,

    1) Is it possible to add image on the mega menu? I tried using the code and paste it in the description box, but to no avail.

    2) I currently have three menus, and I’ve set one of them as the main menu, the rest are for the custom menu on footer widgets. Instead of showing the Main Menu as the main menu, it has showed my other menu as the main navigation. Might be a bug or conflict?

    Please advise.

    Thanks,

    Dee

    #44378

    Hey,

    1) I think this isn’t possible at the moment – I’ll ask Kriesi though.

    2)Did you choose the main menu (menu Broadscope should use as main menu) on the left side (drop down box in the menu manager/editor).

    #44379

    Unfortunatley wordpress strips the html code and I wasnt able to identify were the filter is applied yet. The only quick solution I can think of is to create an image shortcode. shortcode in general work and a img shortcode wouldnt be recognized as html tag:

    if you add this to your functions.php file you should be able to use images:

    http://pastie.org/1819752

    use it that way:


    [img src='path/to/image.jpg']
    #44380

    Thanks guys! It’s working great :)

    As for the main menu, I did select it from the drop down.

    #44381

    Hi Kriesi, i were wondering just the same thing as ceativeluv – but when i add your pastie to functions i receive and error: Parse error: syntax error, unexpected T_STRING in /home/sweetwpn/public_html/testi/wp-content/themes/brightbox/functions.php on line 103

    #44382

    Hey,

    Assuming you copied / pasted the code exactly as it was there shouldn’t be an error like this. Can you upload the content of functions.php to http://pastebin.com and link back to it here?

    James

    #44383
    #44384

    Hey,

    I posted the corrected version here:

    http://pastebin.com/F9ZDrZrY

    #44385

    Thanks, its working.

    #44386

    ok its not working though, after i setup functions.php just like you pasted, after that when i am using media library image uploader i received error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/sweetwpn/public_html/testi/wp-content/themes/brightbox/functions.php:1) in /home/sweetwpn/public_html/testi/wp-admin/async-upload.php on line 26

    857

    Menu is working ok and images are uploaded but that error shows after image has uploaded 100%

    #44387

    Try to upload the unmodified functions.php and paste following code at the very bottom:

    function avia_sc_img($atts, $content = "", $shortcodename = ""){
    return '<img src="'.$atts['src'].'" alt="" />';
    }

    add_shortcode('img','avia_sc_img');

    #44388

    Thanks Dude, it is working. Can you have a look another topic that i have posted? its about homepgae blog section and some missing captions.

    #44389

    Glad that it’s working now :)

    #44390

    Hello,

    I have question about the menu. Is it possible to use my own menu but still keep the mega menu there as a reference? When I try to switch the “main menu” in WP nothing happens

    -thanks

    #44391

    Hey,

    I’ve tested it myself and it didn’t work for me too. Maybe the problem is caused by the content importer. You have to alter the menu or delete the original menu and create a new one.

    #44392

    ok. will do.

    thanks

    #44393

    Cool. Just ask if you’ve any other questions :)

    #44394

    Hi there,

    How may I allow the image to be linked to other URL? I want the users able to click on the image as well.

    Thanks.

    #44395

    Hi,

    Any idea on how I can add link on the image?

    Thanks.

    #44396

    Add following code to functions.php:

    function inoplugs_img($atts, $content = "", $shortcodename = "") {
    extract(shortcode_atts(array(
    "url" => '',
    "img" => ''
    ), $atts));
    return '<a href="'.$url.'"><img src="'.$img.'" alt="" title="" /></a>';
    }

    add_shortcode('imglink','inoplugs_img');

    and use the shortcode like:

    [imglink url="http://google.com" img="my.image.jpg"]

    #44397

    I am trying to do the same thing by putting images in the mega menu. I pasted the code into my functions.php, I then put the shortcode in the text of the mega menu and it just shows me the raw shortcode.

    #44398

    you can go to http://www.awardco.com and hover over retirement programs to see what I see

Viewing 22 posts - 1 through 22 (of 22 total)

The topic ‘Image on Mega Menu’ is closed to new replies.