Advertisement:

Author Topic: How to add a welcome message in homepage?  (Read 3111 times)

volunteer

  • Full Member
  • ***
  • Posts: 241
How to add a welcome message in homepage?
« on: March 03, 2014, 01:00:18 pm »
Hi guys, I am trying to add a welcome message./image in the home page just over "Latest listings.."
You can see what I am talking about in the screen-shot attached
Can anyone give me a hand with the code I need to add?

Thanks! I really appreciate it! =)

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a welcome message in homepage?
« Reply #1 on: March 03, 2014, 01:15:06 pm »
There are a couple ways.
One easy way would be to just hard code html code directly into the page file.
Another would be to use a plugin such as sidebar_editable (Don't let the name fool you) if this plugin is compatible with your Osclass version and theme.
A new php page could be created then loaded at the point you want it to appear.

just ideas and likely others will have suggestions.

Tom

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: How to add a welcome message in homepage?
« Reply #2 on: March 03, 2014, 01:28:52 pm »
thanks for your reply Tom

the plugin sounds good since my coding skills are limited

where can I find sidebar_editable? Searched for it in the Market but didn't find it

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: How to add a welcome message in homepage?
« Reply #3 on: March 03, 2014, 01:35:12 pm »
FOUND IT! :)  sorry

Will try now and post results

thanks again

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a welcome message in homepage?
« Reply #4 on: March 03, 2014, 01:38:06 pm »
If plugin works as intended you will find it quite powerful. The plugin code can be placed most anywhere within most any page and can be used multiple times. It is one of the best out there for this type work.

Want to see this plugin in action then check out www.kathyfarnsworth.com Everyplace you see text is that plugin.

Download at www.osshaft.org in plugins category.
Tom
« Last Edit: March 03, 2014, 01:56:40 pm by tomshaft »

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: How to add a welcome message in homepage?
« Reply #5 on: March 03, 2014, 02:03:55 pm »
so I am trying to use the plugin editing

/public_html/oc-content/themes/yourtheme/main.php

but can't get the code right, it messes up the structure of the main.php and the sidebar is not on the side anymore but on top of the rest..
 
Could u give me a hand with the code? I'm just learning

Code: [Select]
<div class="content">           
            <h1><?php _e('MY MESSAGE''twitter') ; ?></h1>
            <div class="line">
            <?php content(1?>      (this is the plugin)
                        </div>

Took a look at your website and the free themes, really nice :)
« Last Edit: March 03, 2014, 02:13:52 pm by volunteer »

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a welcome message in homepage?
« Reply #6 on: March 03, 2014, 02:15:55 pm »
As with most plugins, The plugin will follow the css of the location the line of code is placed into so try to locate it in a div, wrapper or  similar.
Example would be if placed into a sidebar then it would have the width, background, etc of that css style.
Move the line of code up or down one line at a time until you see a change.
Sort of the best I can tell you without having more information.
Post your website url. Look over a site that is using it with your browser f-12 tools. The problem is more where your placing the code.

Example - in the main.php/Bcute theme located at www.kathyfarnsworth.com is the plugin line of code.
 <div class="containerbg">
            <div class="container">
<?php content(7) ?>

                <?php osc_current_web_theme_path('header.php') ; ?>

         The above plugin code line is picking up the styling from <dic class="container">

There is a world map plugin. I have not used it.

Tom
« Last Edit: March 03, 2014, 02:22:09 pm by tomshaft »

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a welcome message in homepage?
« Reply #7 on: March 03, 2014, 02:24:05 pm »
Need to add this.

I just noticed you are using the repurpose theme which is a variant of the twitter theme. This may cause un-expected results. These are very "touchy" themes.

Tom

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: How to add a welcome message in homepage?
« Reply #8 on: March 03, 2014, 03:06:36 pm »
Thanks for your help Tom

is was way more simply that I though
just needed to place

<?php content(7) ?>

on top of Latest Listings.. and the format remains as original

is a pity the plugin EDITABLE SIDEBAR only supports plain text :(

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: How to add a welcome message in homepage?
« Reply #9 on: March 03, 2014, 04:02:59 pm »
You could set up multiple widgets. These support code though instances of use is limited to one use each in Main, footer, header, sidebar and possibly a couple other locations. Used in conjunction with editable is the quick easy way and easy to change in the future.

Tom