*

MeroWish.com

  • ***
  • 78 posts
Please helpe me on this 2 things..

1) i had placed this code to show the "Location" things on Mobile view as per like www.lakompra.com this here https://prnt.sc/gnyf68 as i had marked with red, and for this i had placed some codes on item.php which are these.

search for <?php echo __('Unregistered user', 'zara'); ?>
                  <?php } ?>
                </div>

above this code paste

<div class="mobileShow">   
             <center>               
            <?php _e('Listing location', 'zara') ; ?>:<br>
             
              <?php if(trim(osc_item_country() . osc_item_region() . osc_item_city()) == '') {?>
                <div class="empty"><?php _e('Location of item was not specified', 'zara'); ?></div>
              <?php } ?>

              <?php
                $location_array = array(osc_item_country(), osc_item_region(), osc_item_city());
                $location_array = array_filter($location_array);
                $item_loc = implode(', ', $location_array);
              ?>

              <?php if($item_loc <> '') { ?>
                <div class="elem"><?php echo $item_loc; ?></div>
              <?php } ?>

              <?php if(osc_item_address() <> '') { ?>
                <div class="elem"><?php echo osc_item_address(); ?></div>
              <?php } ?>
                   </center>   <br>         
                                             
         <div class="id_anuncio"><center>ID del Anuncio # <?php echo osc_item_id(); ?></center></div> </div>


Now look for this code

<?php _e('Contact seller', 'zara') ; ?>
            </div>
          </div>
        </div>

above this line you will have

div id="location" >
          <h2 class="sc-click">
            <div class="left"><i class="fa fa-map-marker"></i></div>
            <?php _e('Listing location', 'zara') ; ?>

Just Add

<div id="location" class="mobileHide">
          <h2 class="sc-click">
            <div class="left"><i class="fa fa-map-marker"></i></div>
            <?php _e('Listing location', 'zara') ; ?>
          </h2>


As, i had followed the same step as above, but on my side it shows like this http://prntscr.com/h3z8a0 on "sellers info" block. The thing is what i'm getting issue that here it doesn't shows the "city" name if users select the city name while posting the Ad then here on item page it doesn't shows "city" name it only shows "Region" & "Address". For ex. There will be city name "Kathmandu" just after Region name bagmati. Please help me how to fix this and this is only works with "unregistered" users how to show the "location" section same for " registered " users? Please help me.


And second thing..

2) I had uploaded the background image on my host here is the link https://merowish.com/catb.png

And placed the code as indicated here.

With the background search in style.css for .home-container.hc-latest

and Add

background-image: url(https://merowish.com/catb.png);
    background-position: center;

for background image i had did the same thing but it doesn't shows on my home page as background please help me how to fix this. Please help me :(

Waiting for your kind response and reply :(
MeroWish.com

*

MeroWish.com

  • ***
  • 78 posts
Re: Please help me on 2 things, One is that "city" feild & background image
« Reply #1 on: November 02, 2017, 06:42:32 AM »
Please help me.. waiting for your reply
MeroWish.com

*

MB Themes

Re: Please help me on 2 things, One is that "city" feild & background image
« Reply #2 on: November 02, 2017, 11:14:24 AM »
@MeroWish
1) Note that there are 2 profiles on theme. 1 for desktop, 1 for mobile. Update correct one.
Code: [Select]
<?php echo osc_item_country(); ?>,
<?php echo osc_item_region(); ?>,
<?php echo osc_item_city(); ?>

Nothing else required.

2) No such code exists in your style.css
https://merowish.com/oc-content/themes/zara/css/style.css
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots