Forum Replies Created

Viewing 15 replies - 1 through 15 (of 82 total)
  • Forum: Installing WordPress
    In reply to: New to this

    It’s most likely a DNS propagation delay. Most of the time they’re instantaneous but some times they could take a while. If there are several nameservers set for the domain, try swapping them around. You can also check if it loads with the www prefix.

    1. If by migrate you mean uploading just all your files to the live server then yes, the settings (and posts/pages) will be lost. Most Plugins/Themes settings (and the site’s content of course) are stored in the database so you’ll want to copy your database(s), too.

    2. Documenting is always good, but if you could manage to copy your database then you won’t need to recreate most of them.

    Yes, you only need to define different table prefixes for each installation, the default being wp_.

    It’s generally safe but I think it will have some performance issues once the database gets bigger. A rare possibility where things can get messy is when you use some advanced but poorly written Themes or Plugins where the developers just assume everyone will be using wp_. Most of the times, you’re good to go.

    Forum: Installing WordPress
    In reply to: New to this

    It’s accessible from here.

    Photo Website

    Not really. Search results are displayed using the search.php file (the codes you have above). If you look into the file you’ll find the line:

    get_template_part('content', $format);

    Each post that is found by your search query will go through this code. What it does is it tells WordPress to fetch yet another template file based on the format of the post. For example, if it’s a standard post it will fetch “content-standard.php”. If you saved the post in a quote post format it will fetch “content-quote.php”. Hope that makes sense.

    So what you need to do is modify the codes in these template files. You can start with “content-standard.php” since I assume most of your posts will be in this format. There is a catch, though. Since this template file is also used throughout the site, you can’t just switch “the_content()” with “the_excerpt()” because it will affect all pages/views that calls this template.

    The solution is to add a conditional script telling WordPress to only display excerpts on search results. Locate where the_content(); is then replace it with this snippet:

    is_search() ? the_excerpt() : the_content();

    That should do it.

    Thanks for visiting my site although I know there’s nothing much to see there right now. Of course I’ll be happy to help you with your projects. 🙂

    Just the numbers because this is what the visitors will click.

    It will be easier if you can modify how ASP.NET renders the output, i.e. detect and render HTML from the string. Take a closer look into literal control or use Response.Write(htmlString);

    Yes, they work like regular links but uses tel: instead of href:. If you want a link to trigger an email app, use mailto:your@email.com.

    Forum: Fixing WordPress
    In reply to: Make hover effect
    #secondary-nav > .menu-item a:hover {
      background-color: rgba(255,255,255,.7);
    }
    Forum: Fixing WordPress
    In reply to: Make hover effect

    Add this to your CSS (at the bottom so it doesn’t interfere with other rules):

    #secondary-nav > .menu-item a:hover {
      border-bottom: 2px solid #000000;
    }

    You will most likely find the line in the filed named header.php but it really does depend on how your developer built it.

    Search for the line:

    <img src="http://www.rjspest.com/wp-content/themes/petsmanagement/images/callnumber-new.png">

    then wrap it like the snippet above. The end result would be something like

    <a href="tel:+12128961299"><img src="http://www.rjspest.com/wp-content/themes/petsmanagement/images/callnumber-new.png"></a>

    Hope that helped. 🙂

    That’s okay, I’ll continue it here. 🙂

    Past this into your functions.php file. This should reset the search results to only display posts.

    // Custom search filter
    function SearchFilter($query) {
    	if ($query->is_search) {
    		$query->set('post_type', array( 'post' ));
    	}
    	return $query;
    }
    add_filter('pre_get_posts','SearchFilter');

    Hope that helped! 🙂

    // WP_Query arguments
    $args = array ( 'tag_id' => '1,2,3' );
    // The Query
    $query = new WP_Query( $args );

    OR

    // WP_Query arguments
    $args = array ( 'tag_name' => 'blogging, wordpress, slug');
    // The Query
    $query = new WP_Query( $args );
    Forum: Fixing WordPress
    In reply to: Updating my site

    I’m sorry, I’m not familiar with that plugin so I can’t assist on how to use it. I believe you will find documentation on the plugin’s admin pages or on its official site.

    If you have access to your MySQL database, you can backup WordPress by exporting your tables.

    About the results displaying snippets, you should swap the_content() with the_excerpt() on the template page.

Viewing 15 replies - 1 through 15 (of 82 total)