WordPress.org

Ready to get started?Download WordPress

Forums

MarketPress - WordPress eCommerce
[resolved] How to Switch Around Photo and Product Title in Product Listing (4 posts)

  1. ren3784
    Member
    Posted 1 year ago #

    I am using my current theme for this plugin and I am trying to figure out how to switch the product title and product photo around, because the title is on top of the photo. I would like it to be under, because sometimes the title pushes the image out of line with the other products.

    I can read PHP pretty well, but all I can find is the code for the product listing widget, not the actual page.

    Please help, something so simple shouldn't be so hard to find. Thanks

    http://developerzblock.com/imagesz/product-listing-problem.pngz

    http://wordpress.org/extend/plugins/wordpress-ecommerce/

  2. pcwriter
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hiya @ren3784,

    The best and most update-proof way to do that is to create a custom template and call the functions you need there.

    You'll find all you need to know about how to structure the template in wordpress-ecommerce/marketpress-includes/themes/Themeing_MarketPress.txt

    All the required functions can be found with inline documentation in wordpress-ecommerce/marketpress-includes/template-functions.php

  3. ren3784
    Member
    Posted 1 year ago #

    Thanks! Somehow it was easier to make than I expected...

    However when I called the functions, the title was still on top of the photos so I tried to copy the functions over to my template so that I could edit it.

    Of course that made an error for calling the function twice, so I still had to edit template-functions.php. I didn't want to rename the function just to change one thing, duh, and deleting it from template-functions.php and moving it over to my template wouldn't help if there was an update either.

    It's working the way I have it now, but if there is an update, it will erase my little switch (I wouldn't mind fixing it right quick)... .... So basically I'm not sure how to switch the title around without messing with that file.

  4. WPMUDEV
    WPMU DEV Support Staff
    Plugin Author

    Posted 1 year ago #

    @ren3784

    the only thing i would suggest if going the template way would be to create a child theme and modify that. That way it wouldn't be overwritten by an update.

    Cheers

    tom

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic