WordPress.org

Forums

Customizr
[resolved] How to make a row division before the Featured pages (30 posts)

  1. Dibyendu
    Member
    Posted 1 year ago #

    How to make a row division before the Featured pages? Actually I want to put Mailchimp subscription bar.

  2. ElectricFeet
    Member
    Posted 1 year ago #

    add_filter( 'tc_slider_display', 'my_extras_after_slider' );
    function my_extras_after_slider($html) {
        $myextrahtml = '<h4>This is an extra heading</h4><p>This is some extra text</p>';
        return $html . $myextrahtml;
    }

    in your functions.php. Change $myextrahtml to be what you want.

  3. Dibyendu
    Member
    Posted 1 year ago #

    Parse error: syntax error, unexpected T_CLASS in /home/rdo69150/public_html/wp-content/themes/customizr-child/functions.php on line 7

    It shows this error

    I did:

    <?php
    /**
    * This is where you can copy and paste your functions !
    */
    
    $myextrahtml
    <div class="row-2">
            <div class="container">
            	<h3>We make your world a beautiful place.</h3>
                <h3>Signup for our Newsletter to be updated !</h3>
    	  <!-- Begin MailChimp Signup Form -->
    <form action="http://rhododendron.us3.list-manage.com/subscribe/post?u=48143a9a0332f71bfc1e2bc3e&id=7f56733d8a" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    	<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="you@yourmailaddress.com" required>
        <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    	<div class="clear">
    	<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
    	</input>
    	</div>
    </form>
    </div>
    
    <!--End mc_embed_signup-->
            </div>
  4. ElectricFeet
    Member
    Posted 1 year ago #

    You didn't insert my code, and then ask why it didn't work?

    There's a line in my code above that says:
    $myextrahtml = ' .... ';

    You need to put your html inside those quotes.

  5. Dibyendu
    Member
    Posted 1 year ago #

    This one worked absolutely correct. Thanks so much. But there is a prob if you check the url http://www.rhododendron.in there is no division after the extra HTML thingy.

    How to divide it and I want to keep a different bg color for this subscription row to make it look better.

  6. Dibyendu
    Member
    Posted 1 year ago #

    This is what I have right now

    <?php
    /**
    * This is where you can copy and paste your functions !
    */
    
    add_filter( 'tc_slider_display', 'my_extras_after_slider' );
    function my_extras_after_slider($html) {
        $myextrahtml = '<div class="row-2">
            <div class="container">
            	<h3 style="text-align: center;">We make your world a beautiful place.</h3>
                <h3 style="text-align: center;">Signup for our Newsletter to be updated !</h3>
    	  <!-- Begin MailChimp Signup Form -->
    <form action="http://rhododendron.us3.list-manage.com/subscribe/post?u=48143a9a0332f71bfc1e2bc3e&id=7f56733d8a" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate style="text-align: center;">
    	<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="you@yourmailaddress.com" required>
        <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    	<div class="clear">
    	<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"style="text-align: center;">
    	</input>
    	</div>
    </form>
    </div>
    
    <!--End mc_embed_signup-->
            </div>';
        return $html . $myextrahtml;
    }
  7. ElectricFeet
    Member
    Posted 1 year ago #

    Well done. It's working! Could you explain what you mean by "there is no division after the extra HTML thingy"?

  8. Dibyendu
    Member
    Posted 1 year ago #

    There should should be a thick line between the featured page row and mailchimp subscription to make it took separate and the back back ground for particularly this part is looking a bit weird. Can I change the Background for only this row?

    I hope I could explain it better now.

  9. Dibyendu
    Member
    Posted 1 year ago #

    @electricfeet

    Any suggestion?

  10. Dibyendu
    Member
    Posted 1 year ago #

    @redelconsulting

    Can you please help me out to figure out how to change the bg color of the particular row I am pointing to. http://www.rhododendron.in

  11. Dibyendu
    Member
    Posted 1 year ago #

    @ElectricFeet

    If you get time please check on my last query here.

  12. Helwan
    Member
    Posted 1 year ago #

    Hi Yj9S8f1Z)HS2,

    Your website looks like pretty good,below my site

    http://rzngi.uphero.com/

    from where exactly (css) i can able to change the hider to be like your website. ALL(orange)

    - You notes when switch to Arabic the home slider is not working,
    Could you please help me out in this matter?

    Regards,
    Ahmed.

  13. rdellconsulting
    Member
    Posted 1 year ago #

    @Helwan, please start a new Topic for your problem.

    @whereangelsfeartotrade, don't see any Mailchimp anywhere. Can you post a screenshot at postimg.org please?

  14. Dibyendu
    Member
    Posted 1 year ago #

    @rdellconsulting

    Please check

    http://prntscr.com/2vzjyr

  15. rdellconsulting
    Member
    Posted 1 year ago #

    Try:

    #main-wrapper {
      border-top: 2px solid #FFFFFF;
      margin-bottom: 20px;
      margin-top: 20px;
    }
  16. Dibyendu
    Member
    Posted 1 year ago #

    This I need to add in function.php right? or style.css

  17. rdellconsulting
    Member
    Posted 1 year ago #

    It's CSS so style.css

  18. Dibyendu
    Member
    Posted 1 year ago #

    Aha! that has created a border between the subscription row and the featured pages! Nice! that was my primary requirement which I asked for long ago.! Thanks for that!

    One last requirement is till there to make this row background different from the website background.

    By the way I tried to change the black background in my website to some other color. But it is not taking an effect..! what could be the problem? I am sorry if that too much to ask for! :/

  19. rdellconsulting
    Member
    Posted 1 year ago #

    Good, I managed to get something to work ;)

    Still not getting 'row background' - do you mean the email address white box?

  20. Dibyendu
    Member
    Posted 1 year ago #

    :D Thanks for making that work! :)

    No I mean the entire form field. mean the subscription part!

  21. rdellconsulting
    Member
    Posted 1 year ago #

    How about playing with:

    .row-2 {
      background-color: #FFFFFF;
      color: #FF0000;
    }
  22. Dibyendu
    Member
    Posted 1 year ago #

    Great! This one worked! Thanks a ton!

    There are some modification needed that I'll do! Atleast this is working!

    One thing still remains

    I tried to change the black background in my website to some other color. But it is not taking an effect..! what could be the problem? I am sorry if that too much to ask for! :/

  23. Dibyendu
    Member
    Posted 1 year ago #

    Great! This one worked! Thanks a ton!

    There are some modification needed that I'll do! Atleast this is working!

    One thing still remains

    I tried to change the black background in my website to some other color. But it is not taking an effect..! what could be the problem? I am sorry if that too much to ask for! :/

  24. rdellconsulting
    Member
    Posted 1 year ago #

    You've put this in your styling:

    body {
      background: none repeat scroll 0 0 #000000;
    }

    Change the #000000 (=black)

  25. Dibyendu
    Member
    Posted 1 year ago #

    Thanks

    Changed the child theme with desired colors everywhere. Still it shows the old color schemes ! Have no idea why!

  26. rdellconsulting
    Member
    Posted 1 year ago #

    Refreshed your cache?

  27. Dibyendu
    Member
    Posted 1 year ago #

    It was my fault. I had some codes pasted in the parent customizr custom css which was causing problem.

    Now if you go to the list there is a gap between the mailchimp form field and border (in white). How to get that adjusted and the borders are not coming from one edge to another edge of the page. which is looking a bit weird.

  28. Dibyendu
    Member
    Posted 1 year ago #

    This border problem needs attention! :(

  29. rdellconsulting
    Member
    Posted 1 year ago #

    I suggest you start a new Topic - this one is getting too long and dealing with multiple issues.

  30. Dibyendu
    Member
    Posted 1 year ago #

    I just did. Resolving this one.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.