Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • I understand now, and your assumption is on the right track. Some servers for security reasons use (or not) different options for URL paths.

    Here was my solution in my case I had to create a path using PHP. Now I could access the path like so through functions.php
    //More insights about accessing $_SERVER https://www.php.net/manual/en/reserved.variables.server.php

    //In my case, Dreamhost didn’t allow direct include() or include_once for security reasons so I created a var
    $doc_root = $_SERVER[‘DOCUMENT_ROOT’];

    require_once(“$doc_root/wp-content/themes/jupiter-child/inc/rankya-walker-class.php”);
    require_once(“$doc_root/wp-content/themes/jupiter-child/framework/helpers/global.php”);

    //also in wp-config.php DreamHost adds the below code automatically upon auto install of WP.

    if (preg_match(“/^(.*)\.dream\.website$/”, $_SERVER[‘HTTP_HOST’])) {
    $proto = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https” : “http”;
    define(‘WP_SITEURL’, $proto . ‘://’ . $_SERVER[‘HTTP_HOST’]);
    define(‘WP_HOME’, $proto . ‘://’ . $_SERVER[‘HTTP_HOST’]);
    }

    //as you can see, they are automatically searching for their subdomain using $_SERVER[‘HTTP_HOST’]) and putting the domain in a var $proto and then defining WP_SITEURL and WP_HOME. Although this example is for working out http or https, at least it gives you an idea as to how certain servers work around paths

    I would read the help section for your new web server or even raise a support ticket if other members do not reply to this. I hope this helps

    • This reply was modified 2 years, 11 months ago by Tolga.
    • This reply was modified 2 years, 11 months ago by Tolga.

    Hi there, I’m sure that “the header, footer, theme options” of an old site being migrated are to do with website Theme and not WordPress core. That means, any customization on the old sites Theme will not migrate unless we do it manually.

    Usually most WordPress themes have export options through

    WordPress Dashboard > YourThemeSettingsMenu > Export

    Then we would Import all customization options on to the new site. So if you have a backup of Exported Theme Options, you can import that on the new site. Furthermore:

    in your define rules, you are using http protocol

    should it not be:

    https

    • This reply was modified 2 years, 11 months ago by Tolga.

    Its your bootstrap.css causing issues. Currently this is the culprit:
    .col-1 {
    -webkit-flex: 0 0 8.333333%;
    -ms-flex: 0 0 8.333333%;
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
    }
    .col-2 {
    -webkit-flex: 0 0 16.666667%;
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    }`

    Change it by adding this to your Theme CSS

    .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    max-width: 48% !important;

    .woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    max-width: 48% !important;
    }

    It should fix it ??

    Hello Naomi. Then, I believe you are on the right track by assigning extra categories which is due to them being more meaningful to the visitor. So therefore an example would be:

    Site is about Fashion > Clothes > Tops > you can place any Product Here.

    Having said this: do keep in mind this critical factor about SEO.

    You rank for individual URL’s and content that is found on those URL’s.

    When you categorize your WordPress site, how it help SEO is to let search engines better “crawl, as in follow links” to understand the structure of your website.

    So to simplify your question. Create logical categories and place your products accordingly. Then work on Product URL optimization (unique engaging content, image/s, Title, and anything else)

    SEO Tip for you to consider as an example:

    Title = PRODUCTNAME Custom Made T-Shirts – Clothes You’ll Love

    image file name = PRODUCTNAME-tshirt-by-yourbrandname-clothes.jpg

    Content: PRODUCTNAME etc. etc.

    Having said this: I would keep things simple on the site in terms of categories. Because as your website grows it can be cumbersome to manage if there are too many multiple categories.

    Site about Fashion:

    category could be Clothes
    category could be Tops
    category could be T-shirts
    category could be Casual > T-shirts
    category could be Clothes > Casual
    category could be Tops > Casual etc. etc.

    Although you can place T-Shirts in any (or all) of these categories. Ideally, you must answer this question for SEO and search engine ranking.

    Example: which keywords you really want to rank for. Is it:

    Tshirt Tops PRODUCTNAME, OR

    Casual Tops PRODUCTNAME, OR

    Casual Tshirt PRODUCTNAME etc. etc.

    Once you answer this, then, where to place Products/Pages/Posts become more easier.

    Meaning, although you could target and rank multiple keywords. It is wise to place URL’s under a category accordingly to target keywords.

    IF PRODUCTNAME was a tshirt for casual wear. Then, category could be:

    casual-tops > tshirt > PRODUCTNAME

    But its great that you are asking this question Naomi, because having the right foundation is better in the long term (also helps search rankings). I hope this clarifies the question and that your WordPress built site is destined for greatness online. SEO Tip: make sure to publish blog posts regularly because you can link back to your Product URL’s

    For example:
    Top Ten Custom Made T-Shirts Designs in 2021.

    Share your insights….. include images, make it easy to share the post, and also ask readers to share the Blog Post. Within the content use keywords-to-internal-link back to yoursite DOT COM / casual-tops / tshirt / PRODUCTNAMEWHICHTHENISATSHIRT

    Long term results and better rankings basically assured ??

    Forum: Fixing WordPress
    In reply to: Delele element

    I think this CSS could do it IF its not a required field

    #wp_signup_form_6743282 > div:nth-child(6){
    display: none
    }

    you can place this in towards the end of styles.css file in your Theme

    Hi Naomi, to answer your question:

    I would like to know whether all the categories I create on my blog site need to appear in my Primary Menu at the top?

    No. What you place on your menu is totally up to you. Most websites do not show all pages/categories etc. in their primary menu. Once again, its totally up to you as to what you want to place in your Primary Menu.

    In terms of your second question. You can absolutely create additional categories (including parent/child categories) and place your blog posts in any category you think is logical.

    Once again, you can create categories for your blog posts, and they will not show up in Primary Menu unless you choose to show them.

    Hello Deeve, have you tried this

    Disabling the filter

    Some people choose to disable the wpautop filter from within their theme’s functions.php:

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    Hello Engine44,

    Using Export, I created an XML file on my Desktop. I ran Importer Tool. Using that tool, I selected the XML file and uploaded it.

    Up to this point, this is the right way to import content. But I never heard of saving .php file to desktop after this point. I would triple check the reason and also find out exactly what is in that .php file as its not a normal WordPress export/import process.

    Anyhow, the easiest way to re-try is.

    First on your NEW installation. Locate wp-content/

    Usually through File Manager > public_html > wp-content

    If using FTP program. then, login to your installation to locate wp-content

    In there you will see wp-content/plugins and wp-content/themes etc.

    Simply upload your OLD plugins in to that folder. Because export/import does NOT copy over your OLD plugins.

    While there, you can also move your OLD site images which also resides in wp-content/uploads

    Hello Emmanuel, basically what it means is, there was a query =

    fr/news/

    ?q=fr%2Fnews%2F

    HTML URL Encoding for forward slash is %2F hence the URL showing this. I think may have something to do with your web server settings.

    Search “Need to allow encoded slashes on Apache”

    Which may assist further

    You can check your WordPress Menu’s to see if there is a check box that says “add new items to menu”

    Also, you are using WordPress which has hundreds of themes you can quickly switch to (that means, you really don’t need to buy a new theme when there is plenty of free ones in WordPress Dashboard > Appearance > Themes > Add New

    https://CHANGETHISTOMATCHYOURWEBSITE.com/wp-admin/theme-install.php?browse=featured

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