Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #24603

    Hi,

    How can I place different widgets at portfolio items, underneath the title of the portfolio item? At the moment that area is empty and I would like to add widgets there as well: http://www.bigdata-startups.com/BigData-startup/apple-re-invent-big-data/

    Thanks.

    Mark

    #123997

    Hi,

    Sorry for the delay. So you want to put a sidebar with widgets under the title of the portfolio item , and this is on an ajax portfolio item or a portfolio item page?

    This is the ajax portfolio item page – http://www.clipular.com/c?7518017=woWd_FVHQOm1ibgl7-w85EQl530&f=.png

    This is the independent portfolio item page – http://www.clipular.com/c?7446199=qXsopKMIq80EyBDhdSUt8FhmkaM&f=.png

    You want to remove all the stuff under the Name (meta data and verbiage) and instead have just the image, the title, and then below it a sidebar?

    Thanks,

    Nick

    #123998

    Hi Nick,

    I would like to place widgets underneath the title and all the other stuff at the independent portfolio item page. So for the following example, the widgets should be placed underneath “Rating: 6 bits” http://www.bigdata-startups.com/BigData-startup/wibidata/

    And I would like to be able to select the widgets just like at a blog post page.

    Thanks.

    Mark

    #123999

    Hi Mark,

    The most painless , least intrusive way to do this with the smallest footprint would be to use this plugin, which directly embeds any widget or widgets with a shortcode. http://wordpress.org/plugins/widget-shortcode/

    Method 2 would be to use shortcode sidebar , which is more inline with what you want. http://wordpress.org/plugins/amr-shortcode-any-widget/

    It creates a sidebar just like on post page, you populate it with widgets. then you use a shortcode to insert the sidebar wherever you want.

    ===

    Then you will need to edit /includes/helper-templates.php and find lines 1245 – 1250 that look like

    $meta = avia_portfolio_meta($id);
    if($meta)
    {
    echo avia_advanced_hr(false, 'small');
    echo $meta;
    }

    and remove that, and in its place you add the widget (first plugin above) .. you obviously should replace the id with the widget you want to insert.

    do_widget( array( 'id' => 'text-3', 'title' => false, 'before_widget' => '<div>' ) )

    or the sidebar (need to read the directions for plugin, but also a piece of code like this.

    Thanks,

    Nick

    #124000

    Hi Nick,

    Thanks for your answer, but it does not work unfortunately. The moment I remove line 1245-1250 and replace it with the other code the website does not work anymore due to a server error. I copied it with for example: do_widget( array( ‘id’ => “facebooklikebox-4″, ‘title’ => false, ‘before_widget’ => ‘<div>’ ) )

    What am I doing wrong?

    Thanks.

    Mark

    #124001

    Hi,

    I am sorry, I just noticed I gave you wrong plugin. There seems to be a proliferation of them all with nearly identical names

    http://wordpress.org/support/plugin/amr-shortcode-any-widget

    This is the correct plugin for widgets. It will create a sidebar called Shortcodes in Appearance > Widgets. Put the widgets you want in there.

    **However after testing this, there are problems because of the ajax. The widget loads anywhere except on the ajax page. I think this is looking more like a feature than a support request and I will forward it to Kriesi.

    Thanks,

    Nick

    #124002

    Hi Nick,

    Unfortunately, I encountered the same problems with this plugin. Perhaps it is better to wait for a reaction from Kriesi?

    Thanks.

    Mark

    #124003

    Hi,

    I just looked at your page and the way you have it set up, the plugin will work, since you have it set up as a standard portfolio item page that’s not ajaxed. I just tested it

    http://www.clipular.com/c?7561004=OwsUu8y9tWa_OEMJZdhZtWDC0w8&f=.png

    Those 2 Tests in the image are 2 widgets.

    The way i did it, was to add the shortcode to the portfolio item http://www.clipular.com/c?7782003=y2on9xOHgnaDsNlbfTIQ0l0RI5E&f=.png

    Thanks,

    Nick

    Thanks,

    Nick

    #124004

    Hi Nick,

    Great, thanks I understand what you mean. However, at the moment I have already over 150 portfolio entries. Is there a way to place the shortcode of the widgets in a .php file so that automatically the widgets appear at all portfolio entries?

    Thanks.

    Mark

    #124005

    You could add the shortcodes to wp-contentthemesangularsidebar.php – use the do_shortcode() function: http://codex.wordpress.org/Function_Reference/do_shortcode and add it after following line:

    echo apply_filters('avia_sidebar_menu_filter', $sidebar_menu);

    Eg – it would look like:

    echo apply_filters('avia_sidebar_menu_filter', $sidebar_menu);
    echo do_shortcode('[gallery]');

    (and instead of [gallery] use your shortcode). If you want to restrict the shortcode usage to portfolio entries use:

    echo apply_filters('avia_sidebar_menu_filter', $sidebar_menu);
    if(get_post_type() == 'portfolio') echo do_shortcode('[gallery]');

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

The topic ‘Widgets under title Portfolio items’ is closed to new replies.