ecommerce – Correct html5 Tags for a Shop Page

Hope you are doing well.
I’m struggling with a question and want to know your thoughts.
I have to design a shop and I’m wondering which way is the right one to use html5 tags on the product list page. Should I cover a product card with <section> or <article>?
Is a product card an independent topic of the page or a per section covered topic?
If I have to use <article> on the regular product list page, do I have to use on a category filtered product list page?

terminology – Is the term “service city” correct for the main city served by an airport placed outside of that city?

Some airports of big cities are, in fact, technically speaking in a “very near municipality” which is not the main city itself.

For example the airport BCN serving “Barcelona” is, in fact, placed in the city “El Prat del Llobregat” which is 15 Km south from Barcelona.

Or for example the airport CDG serving “Paris” is, in fact, at the town “Roissy” 25 Km northeast from Paris.

I “think” (but can’t confirm) I have heard the term “Service City” to refer to the “main city” the airport is conceptually associated to. For example to say “CDG’s service city is Paris”.

I’m trying to confirm this terminology with no luck.

Can anyone confirm, if this term is correct and provide any public source defining the term? If the term is not correct, what would be the correct one?

wordpress – What is the correct way to use image in place of the H2 tag without affecting the SEO ranking in a bad way?

I’m designing a WordPress post template where I have more than one section on the page each section has a picture as it’s main heading.

my question here is what is the best practice to implement this without affecting SEO since I’m replacing the H2 tag with an image?

I’m considering doing one of these solutions

<h2><img src="https://webmasters.stackexchange.com/---" alt="the second section title"></h2>

or like this

<h2 style="display:none">the second section title</h2> 
<img src="https://webmasters.stackexchange.com/---" alt="the second section title"> 

which one is better? and is their any better solution to approach this?


the first option seems to be better since Alt text does not count as “hidden text” if it accurately describes the image, which is that in my case.

as for the second option it’s not suggested since it might violate google hidden text and links guidelines and it’s semantically incorrect since it will be considered part of the section content while the image represent the section title.

custom taxonomy – Post Grid Filter Shortcode not displaying correct results

I am using Post Grid plugin to display a catalog for a record company using custom post types and taxonomies. They want to be able to filter by artist and genre on the front end, and I have looked at the Post Grid documentation to find a shortcode php file that you can use to add this to a widget in my sidebar. I’ve gotten most everything to work, it shows up in the sidebar widget using the shortcode i generated, the 2 dropdowns are there for artist and genre, and they correctly populate in the dropdown based on the current taxonomies present. I can NOT for the life of me figure out how to make it actually filter the data after pressing ‘submit’ and it just shows everything unfiltered. Here is the code I am using.

<?php
add_shortcode('post_grid_filter_form','post_grid_filter_form');

if ( ! defined('ABSPATH')) exit;  // if direct access

function post_grid_filter_form($args){

    $page_url = '';

    ?>
    <div class="post-grid-filter">
        <form action="#<?php //echo $page_url; ?>" method="get">
            <?php
            do_action('post_grid_filter', $args);
            ?>
            <div class="field-wrap submit">
                <div class="field-input">
                    <?php wp_nonce_field( 'nonce_post_grid_filter' ); ?>
                    <input type="submit" class=""  placeholder="" value="Submit">

                </div>
            </div>
        </form>
    </div>
    <?php
}


//FILTER BY ARTIST

add_action('post_grid_filter', 'post_grid_filter_artist_field');

function post_grid_filter_artist_field($args){

    $terms = get_terms( array(
        'taxonomy' => 'artist',
        'hide_empty' => false,
    ) );

    //var_dump($terms);
    $pgs_artist = isset($_GET('pgs_artist')) ? sanitize_text_field($_GET('pgs_artist')) : '';

    ?>

    <div class="field-wrap">
        <div class="field-label">Filter by Artist</div>
        <div class="field-input">
            <select name="pgs_artist">
                <option><?php echo __('Choose Artist', ''); ?></option>
                <?php

                if(!empty($terms))
                foreach ($terms as $term){

                    $term_id = isset($term->term_id) ? $term->term_id : '';
                    $term_name = isset($term->name) ? $term->name : '';

                    ?>
                    <option <?php echo selected($term_id, $pgs_artist)?> value="<?php echo $term_id; ?>"><?php echo $term_name; ?></option>
                    <?php

                }

                ?>
            </select>
        </div>
    </div>

    <?php

}


//FILTER BY GENRE

add_action('post_grid_filter', 'post_grid_filter_genre_field');

function post_grid_filter_genre_field($args){

    $terms = get_terms( array(
        'taxonomy' => 'genre',
        'hide_empty' => false,
    ) );

    //var_dump($terms);
    $pgs_artist = isset($_GET('pgs_genre')) ? sanitize_text_field($_GET('pgs_genre')) : '';

    ?>

    <div class="field-wrap">
        <div class="field-label">Filter by Genre</div>
        <div class="field-input">
            <select name="pgs_genre">
                <option><?php echo __('Choose Genre', ''); ?></option>
                <?php

                if(!empty($terms))
                foreach ($terms as $term){

                    $term_id = isset($term->term_id) ? $term->term_id : '';
                    $term_name = isset($term->name) ? $term->name : '';

                    ?>
                    <option <?php echo selected($term_id, $pgs_artist)?> value="<?php echo $term_id; ?>"><?php echo $term_name; ?></option>
                    <?php

                }

                ?>
            </select>
        </div>
    </div>

    <?php

}



// Process form data and post query

function post_grid_query_custom_search($query_args, $args){

    $current_post_id = get_the_ID();

    $pgs_artist = isset($_GET('pgs_artist')) ? sanitize_text_field($_GET('pgs_artist')) : '';
    $pgs_genre = isset($_GET('pgs_genre')) ? sanitize_text_field($_GET('pgs_genre')) : '';

    $query_args('s') = $pgs_artist;

    return $query_args;
}

add_filter('post_grid_query_args','post_grid_query_custom_search', 90, 2);

Apache not reading correct document root folder

Apache not reading correct document root folder | Web Hosting Talk


‘);
var sidebar_align = ‘right’;
var content_container_margin = parseInt(‘350px’);
var sidebar_width = parseInt(‘330px’);
//–>









  1. Apache not reading correct document root folder


    Apache shows default page and doesn’t load site configuration. OS: Debian 10. Site is enabled but somehow it doesn’t show files from public_html folder.. It still shows default html page from /var/www folder. Any help is appreciated.

    Code:

    <VirtualHost *:443>
    
    SSLEngine On
    ServerAdmin admin@abc.com
    ServerName abc.com
    ServerAlias *.abc.com
    
    DocumentRoot /home/xx/public_html
    
    SSLEngine on
    SSLCertificateFile    /home/xx/ssl.cert
    SSLCertificateKeyFile /home/xx/ssl.key
    
    <Directory /home/xx/public_html>
    Require all granted
    </Directory>
    
    ErrorLog /home/xx/logs/error.log
    CustomLog /home/xx/logs/access.log common
    LogLevel debug
    
    </VirtualHost>













Similar Threads


  1. Replies: 0


    Last Post: 04-24-2015, 01:27 PM


  2. Replies: 3


    Last Post: 12-25-2014, 01:51 AM


  3. Replies: 9


    Last Post: 05-06-2010, 02:44 AM


  4. Replies: 13


    Last Post: 01-04-2007, 10:14 PM


  5. Replies: 4


    Last Post: 02-10-2004, 10:35 PM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  








Is my development about the limit $lim_{xto +infty}arctan(x)$ correct?

I need to find the limit of

$$large{lim_{xtoinfty}arctan(x) }$$

My development was:

using the property that $arctan(x) +arctan(frac{1}{x}) = frac{pi}{2}, x > 0$

I have:

$lim_{xtoinfty}arctan(x) = lim_{xtoinfty}arctan(x) + (lim_{xtoinfty}arctan(frac{1}{x})) – (lim_{xtoinfty}arctan(frac{1}{x}))$

$= color{blue}{lim_{xtoinfty}(arctan(x) + arctan(frac{1}{x}))} – color{red}{lim_{xtoinfty}arctan(frac{1}{x})}$

$= color{blue}{frac{pi}{2}} – color{red}{0}=frac{pi}{2}$

If this is correct, the same procedure to prove the limit as $xto-infty$, but $arctan(x) + arctan(frac{1}{x}) = -frac{pi}{2}, x < 0$

views – What is correct way to make custom slider module? slide update problems

I have a custom slider module but the problem is if I make a new slide, it won’t appear before drupal cache is cleared. So how can I renew my slides in the module so cache clear isn’t needed.

My Code:
.module file

function my_module_theme() {
   return array('slider' =>                  
           array(
            'variables' => array(
                '#attached' => array(
                    'library' => array(
                        'my_module/assets',
                    ),
                ),
              'slides' => my_module_get_slides(),
            ),
        )
    );
}

PluginBlockFlexSlider.php file

class FlexSlider extends BlockBase {
  /**
   * {@inheritdoc}
   */
  public function build() {
     return array(
            '#theme' => 'slider'
        );
  }
}

calculus and analysis – question on correct use of Limit for multivariable function

V 12.1 on windows.

This limit $lim_{(x rightarrow 0,yrightarrow 0)} frac{x^2-y^2}{x^2+y^2}$ depends on the direction. So the limit does not exist, or could be written as Maple does it, which is $-1dots1$, here is the help from Maple on this:

enter image description here

How can one get Mathematica to give this result? Now Mathematica says the limit is $1$. I tried the Direction option but not able to make it change its mind.

f = (x^2 - y^2)/(x^2 + y^2);
Limit(f, {x -> 0, y -> 0})
(* 1 *)

But we see the limit depends on the direction

 Limit(Limit(f, x -> 0), y -> 0)
 (* -1 *)

 Limit(Limit(f, y -> 0), x -> 0)
 (*  1 *)

Here is also Maple to confirm

restart;
f:=(x^2-y^2)/(x^2+y^2);
limit(f, (x=0,y=0));

enter image description here

Btw, this is not the only one I found, here is another

f = (x^2*y^2)/(x^4 + y^4);
Limit(f, {x -> 0, y -> 0})
(* 0 *)

Maple gives

restart;
f:=x^2*y^2/(x^4+y^4);
limit(f,(y=0,x=0))
  (* 0 .. 1/2 *)

And another one (this one is from youtube actually, so you can see they also say there the limit does not exist)

f = (x^4 - 4 y^2)/(x^2 + 2 y^2);
Limit(f, {x -> 0, y -> 0})
(* 0 *)

restart;
f:=(x^4-4*y^2)/(x^2+2*y^2);
limit(f, (x=0,y=0));
(* -2 .. 0 *)

So I have feeling I am not using Limit in Mathematica correctly, or missing something about its correct use, but do not now know how to correct it. As I said, I tried different Direction option.

lightning network – I’ve been reading about “loop in” and it seems to be like a one-way offline channel, is that correct?

I would not recommend the notion of a one way offline channel. Historically one way channels could have been build for a long time by offering new signatures for spending an output of a 2-2 wallet to the 2nd party in which more and more btc of the consumed input are given to the 2nd party. The second party naturally has an incentive to publish the latest of such tx.

Loop is more like a submarine swap. With loop in you request to get some balance on a payment channel to your side.

Let us assume you have a payment channel with 0.1 btc capacity but all the money is on your partners side. However you would like to add some funds to your side without rebalancing your channels or opening a new channel.

In order to achieve that you could create an invoice with a payment hash. A person might be willing to pay that invoice on lightning if you reimburse that person on chain. The question that loop solves is to make this process trustless.

You make an onchain btc tx to that person but encumber a second output which goes back to you with a timelock. The output that can be claimed by that person can only be claimed if the preimage of your payment hash is presented. This works directly before the timelock expires.

Now there are two cases. Either the person pays your invoice and receives a preimage and can be sure to get reimbursed. Or if the person does not pay the invoice you can reclaim your btc after the timelock. Noone needs to trust the other side.

What I don’t know is if trezor allows to sign such a timelocked / special transaction and how the trezor api works. However I don’t see any reason why it would not support signing such a transaction.

Is my wine marketing strategy correct?

Good morning.
I am a marketing student and I am working on a marketing assignment for a australian wine company´s participation in an international trade fair. I have chosen the ProWein fair in Düsseldorf, Germany, which seems to be the best ranked in the world.
My marketing strategy is divided in two action plans: one in the headquarters of the company (Melbourne) and one directly at the fair.
Action Plan 1:
3 teams will be created for this project: International department, marketing,…

Is my wine marketing strategy correct?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123