Custom CSS and edit front-end contents

  • Brandon Keeley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago - 7 years 6 months ago #105238 by Brandon Keeley
Custom CSS and edit front-end contents was created by Brandon Keeley
I cannot seem to find a way to use custom CSS with membership pro, and it keeps defaulting to my Joomla templates css. Is there a way to have everything 100% my own without using the Joomla template css?

Same with the profile/checkout pages, is there a way to fully customize it but keep the same field id's that correspond with Membership Pro?

Attached is an example of the checkout page I want to create using photoshop. Is this possible?
Attachments:
Last edit: 7 years 6 months ago by Brandon Keeley.

Please Log in or Create an account to join the conversation.

  • Brandon Keeley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #105321 by Brandon Keeley
Replied by Brandon Keeley on topic Custom CSS and edit front-end contents
I genuinely can't figure out how to format the profile and checkout screens. From digging around I found that it just displays the form inputs using php, but how do I format the content individually? Which file allows me to format these?

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #105332 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom CSS and edit front-end contents
Hi Brandon

I would say that it is not quite easy to do the modification.

1. For the checkout screen, the main source code for that layout is from components/com_osmmbership/view/register/tmpl/default.php. That's the main layout of the page and it contains some sub-layouts like default_login.php, default_form.php, default_payment_information.php, default_payment_information_recurring.php, default_payment_methods.php

I guess you want to customize default_form.php, it is displaying all custom fields use in the system

If you look at that file, you will see there is $fields variable. It contains list of fields. To access to a certain fields, use the syntax $fields

For example $firstNameField = $fields;

To generate title/label of the field, use $firstNameField->lable;

To generate input of the field, use $firstNameField->input

You can do the same for all other fields

Could you take a look to see whether it works?

Tuan

Please Log in or Create an account to join the conversation.