Advertisement:

Author Topic: Move ad button  (Read 582 times)

Hartenheer

  • Guest
Move ad button
« on: June 20, 2018, 12:26:11 pm »
I want to move the ad button.
In header.scss I have changed line 107 from 10 to 55.
The inspection is going well.
Nothing happens on the site, do I have to adjust more?

Ik wel de advertentie knop verplaatsen
In header.scss heb ik regel 107 aangepast van 10 naar 55.
In de inspect gaat het goed.
Op de site gebeurd niets, moet ik meer aanpassen?

ejdzej

  • Newbie
  • *
  • Posts: 6
Re: Move ad button
« Reply #1 on: June 20, 2018, 02:00:43 pm »
Edit header.php in your theme dir. Find (or similar):
Code: [Select]
<a class="btn btn-success" href="<?php echo osc_item_post_url_in_category() ; ?>"> <i class="fa fa-pencil-square-o"></i>
        <?php _e('Publish your ad for free'OSCLASSWIZARDS_THEME_FOLDER);?>
        </a>

Hartenheer

  • Guest
Re: Move ad button
« Reply #2 on: June 20, 2018, 02:31:59 pm »
I have tried it in different places.
I think my English is too bad to understand you.
Where should I put it?

Ik heb het op verschillende plaatsen geprobeerd.
Ik denk dat mijn Engels te slecht is om u te begrijpen.
Waar zou ik het moeten plaatsen?

Code: [Select]
<?php
    
/*
     *      Osclass – software for creating and publishing online classified
     *                           advertising platforms
     *
     *                        Copyright (C) 2014 OSCLASS
     *
     *       This program is free software: you can redistribute it and/or
     *     modify it under the terms of the GNU Affero General Public License
     *     as published by the Free Software Foundation, either version 3 of
     *            the License, or (at your option) any later version.
     *
     *     This program is distributed in the hope that it will be useful, but
     *         WITHOUT ANY WARRANTY; without even the implied warranty of
     *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *             GNU Affero General Public License for more details.
     *
     *      You should have received a copy of the GNU Affero General Public
     * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
    <head>
        <?php osc_current_web_theme_path('common/head.php') ; ?>
    </head>
<body <?php bender_body_class(); ?>>
<div id="header">
    <!-- header ad 728x60-->
    <div class="ads_header">
    <?php echo osc_get_preference('header-728x90''bender'); ?>
    <!-- /header ad 728x60-->
    </div>
    <div class="clear"></div>
    <div class="wrapper">
        <div id="logo">
            <?php echo logo_header(); ?>
            <span id="description"><?php echo osc_page_description(); ?></span>
        </div>
        <ul class="nav">
            <?php if( osc_is_static_page() || osc_is_contact_page() ){ ?>
                <li class="search"><a class="ico-search icons" data-bclass-toggle="display-search"></a></li>
<li><a href="https://www.forum.vogel-verkoop-markt.nl"> Het vogel forum </a></li>
                <li class="cat"><a class="ico-menu icons" data-bclass-toggle="display-cat"></a></li>
            <?php ?>
            <?php if( osc_users_enabled() ) { ?>
            <?php if( osc_is_web_user_logged_in() ) { ?>
                <li class="first logged">
                    <span><?php echo sprintf(__('Hi %s''bender'), osc_logged_user_name() . '!'); ?>  &middot;</span>
                    <strong><a href="<?php echo osc_user_dashboard_url(); ?>"><?php _e('My account''bender'); ?></a></strong> &middot;
                    <a href="<?php echo osc_user_logout_url(); ?>"><?php _e('Logout''bender'); ?></a>
                </li>

<li><a href="https://www.forum.vogel-verkoop-markt.nl"><strong> Het vogel forum </strong></a></li>
            <?php } else { ?>
                <li><a id="login_open" href="<?php echo osc_user_login_url(); ?>"><?php _e('Login''bender') ; ?></a></li>
                <?php if(osc_user_registration_enabled()) { ?>
                    <li><a href="<?php echo osc_register_account_url() ; ?>"><?php _e('Register for a free account''bender'); ?></a></li>
                <?php }; ?>
            <?php ?>
            <?php ?>
            <?php if( osc_users_enabled() || ( !osc_users_enabled() && !osc_reg_user_post() )) { ?>
            <li class="publish"><a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad for free"'bender');?></a></li>
            <?php ?>
        </ul>

    </div>
    <?php if( osc_is_home_page() || osc_is_static_page() || osc_is_contact_page() ) { ?>
    <form action="<?php echo osc_base_url(true); ?>" method="get" class="search nocsrf" <?php /* onsubmit="javascript:return doSearch();"*/ ?>>
        <input type="hidden" name="page" value="search"/>
        <div class="main-search">
            <div class="cell">
                <input type="text" name="sPattern" id="query" class="input-text" value="" placeholder="<?php echo osc_esc_html(__(osc_get_preference('keyword_placeholder''bender'), 'bender')); ?>" />
            </div>
            <?php  if ( osc_count_categories() ) { ?>
                <div class="cell selector">
                    <?php osc_categories_select('sCategory'null__('Select a category''bender')) ; ?>
                </div>
                <div class="cell reset-padding">
            <?php  } else { ?>
                <div class="cell">
            <?php  ?>
                <button class="ui-button ui-button-big js-submit"><?php _e("Search"'bender');?></button>
            </div>
        </div>
        <div id="message-seach"></div>
    </form>
    <?php ?>
</div>
<?php osc_show_widgets('header'); ?>
<div class="wrapper wrapper-flash">
    <?php
        $breadcrumb 
osc_breadcrumb('&raquo;'falseget_breadcrumb_lang());
        if( 
$breadcrumb !== '') { ?>

        <div class="breadcrumb">
            <?php echo $breadcrumb?>
            <div class="clear"></div>
        </div>
    <?php
        
}
    
?>

    <?php osc_show_flash_message(); ?>
</div>
<?php osc_run_hook('before-content'); ?>
<div class="wrapper" id="content">
    <?php osc_run_hook('before-main'); ?>
    <div id="main">
        <?php osc_run_hook('inside-main'); ?>

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Move ad button
« Reply #3 on: June 20, 2018, 04:29:50 pm »
Hello,

As far as I know, editing *.scss files won't do anything if you don't compile them into *.css files. Try editing main.css.

Regards.

Hartenheer

  • Guest
Re: Move ad button
« Reply #4 on: June 20, 2018, 05:02:54 pm »
I thought the script of my forum was difficult, but this is really bad
I found it.
Thanks


Ik dacht dat het script van mijn forum lastig was, maar dit is helemaal erg
Ik heb het gevonden.
Bedankt
« Last Edit: June 20, 2018, 05:18:40 pm by Hartenheer »