Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter ayush1989

    (@ayush1989)

    That fixed it! Thank you so much! The code above works perfectly once the requisite Google Font is loaded in the theme options menu. Thank you very much again!

    Thread Starter ayush1989

    (@ayush1989)

    I’m using default fonts (Lato) for the rest of the webpages.

    Thread Starter ayush1989

    (@ayush1989)

    Thank you Hannah! You are awesome! The second solution works perfectly and I wouldn’t ever have guessed it. However, the first one doesn’t seem to work although I modified it a bit. I changed it to:

    .home h2 {
    font-family: “Montserrat”, Georgia, serif;
    }

    The homepage displays h2 headings in Georgia font and not the google font Montserrat mentioned. Is there a way to use Montserrat font on the H2 tags only on the homepage?

    Thread Starter ayush1989

    (@ayush1989)

    That did it! I was using CSS on the icon-class but for some reason that doesn’t work for icon size. Thank you so much Hannah!

    Thread Starter ayush1989

    (@ayush1989)

    I’m extremely sorry I won’t be able to. I could get them to float to the right but couldn’t adjust the size since they were part of the primary menu. I noticed the property font-size can be used to resize them if they were part of a page, but in the menu, it doesn’t seem to be working. How can I target the size of the icons if they’re part of the menu?

    Thread Starter ayush1989

    (@ayush1989)

    I’m sorry for the direct copy-paste. Here’s the pastebin link: https://pastebin.com/z1qguen4. Thanks!

    Thread Starter ayush1989

    (@ayush1989)

    I’m extremely sorry I can’t post a link to it. But I’ve attached the entire code I’m using as search.php below. I’m a newbie at coding so I can’t figure out how to align the sidebar properly. It moves down to accommodate the text when there are no results to show on the search page. I’m using the relevanssi plugin for search:

    <?php
    /**
    * The template for displaying Search Results pages
    *
    * @package WordPress
    */
    ?>

    <html>

    <head>
    <style type=”text/css”>

    .kad-sidebar { float: right; }

    </style>
    </head>

    <body class=”page page-id-20 page-template-default”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title” style=”margin-left: 20px; margin-top: -10px; padding-top: -10px;”><?php printf( __( ‘Search Results for: %s’, ‘Virtue’ ), get_search_query() ); ?></h1>
    <h6 style=”margin-left: 20px; margin-bottom: -6px; padding-bottom: -6px;”><?php echo ‘Search found ‘ . $wp_query->found_posts . ‘ results’; ?><?php if (function_exists(‘relevanssi_didyoumean’)) { relevanssi_didyoumean(get_search_query(), “. Were you searching for: “, “?”, 5); }?></h6>
    </header><!– .page-header –>

    <ul id=”post-list”>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”sresults” style=”margin-bottom: 20px; display: inline;”>
    <div class=”thumbs” style=”float: left; width: 100px; height: 100px; margin: 0 10px 10px 0; “>” title=”<?php the_title(); ?>”><?php echo relevanssi_highlight_terms(get_the_title(), get_search_query()) . get_the_post_thumbnail( $post_id, array(100,100), none ); ?></div>
    </div>

    <?php endwhile; ?>

    <?php else : ?>

    <header class=”page-header”>

    <h1 class=”page-title” style=”margin-left: 20px; margin-top: -10px; padding-top: -10px;”>
    <?php _e( ‘Nothing Found’, ‘nothing’ ); ?>
    </h1>
    <h6 style=”margin-left: 20px; margin-bottom: -14px; padding-bottom: -14px;”>
    <?php if (function_exists(‘relevanssi_didyoumean’)) { relevanssi_didyoumean(get_search_query(), “<p>Did you mean: “, “?</p>”, 5); }?>
    </h6>
    </header>

    <span style=”margin-left: 20px;”>Sorry, nothing matched your search criteria. We have in store what you have in mind! Please try again with some different keywords.</span>

    <?php endif; ?>

    </body>
    </html>

    Thread Starter ayush1989

    (@ayush1989)

    Thanks for the response. Yes, you rightly said that I’m modifying search.php. I was trying to align the sidebar to the right and make it static so that if the text of the main para extends upto the sidebar then it doesn’t go down automatically. But I wasn’t able to figure out how to do so. I’ve tried using the css mentioned in my post above to align it to the right, however, when there is some text in the main page it automatically moves down to provide space to the main para. Can you please let me know how the sidebar can be made static like on the other pages?

    Thread Starter ayush1989

    (@ayush1989)

    Thank you so much! That solved the problem!

    Thread Starter ayush1989

    (@ayush1989)

    That fixed it! Got it in the first guess ?? Thank you so much!

    Thread Starter ayush1989

    (@ayush1989)

    Hey Calvin!

    Hope you’re doing fine. I’m extremely sorry I can’t share the URL yet. I’ve attached a snapshot of the problem area though: https://imgur.com/fFbySro. I’m using the WooCommerce plugin. Notice how save Rs. 400 or 500 is hovering over the product images. I’m kind of a beginner and I can’t figure out how to rectify it. Hoping for a solution to this apparently simple problem! ??

    Thanks and regards,
    Ayush

Viewing 11 replies - 1 through 11 (of 11 total)