Can't format the content of my profiles.
Permalink
Granted I'm VERY new to building sites and my code abilities are pretty much limited to html. I have the member profiles set up so that they can edit their "About Me", "Gender", etc. I want to format it to where the header ex."About Me:[content]" is a different color and bolded and well as add a <br> between each bit of information. I think I have to edit this in my file manager from my host but that's all in PHP so I really need some help on this.
This might be futile granted I don;t really know much about code but here it is.
This is the code from my "view.php" file.
If i wanted the header of each line of info to be formatted differently from the rest of the content then where/how would I put that?
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <div id="ccm-profile-wrapper"> <?php Loader::element('profile/sidebar', array('profile'=> $profile)); ?> <div id="ccm-profile-body"> <div id="ccm-profile-body-attributes"> <div class="ccm-profile-body-item"> <h1><?php echo $profile->getUserName()?></h1> <?php $uaks = UserAttributeKey::getPublicProfileList(); foreach($uaks as $ua) { ?> <div> <label><?php echo $ua->getKeyName()?></label> <?php echo $profile->getAttribute($ua, 'displaySanitized', 'display'); ?> </div> <?php } ?>
Viewing 15 lines of 27 lines. View entire code block.
This is the code from my "view.php" file.
If i wanted the header of each line of info to be formatted differently from the rest of the content then where/how would I put that?
Can I just plug in CSS as well? I'm currently learning it.
Some blocks use the echo("some string") function to display data. You can add html in here as long as you enclose it in quotes.
Backup any php file before editing it.