Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter trnghosh

    (@trnghosh)

    Hello “Michael” , it works after I changed my function.php file to functions.php just changed the name by adding one “s” at the end of “function.php”. I never think this solution, just look into twenty fifteen folders file name and find this solutions.

    However thanks for helping me

    Regards

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Once again thanks for the response. I used inspect element and if the style sheet loaded it must be seen in between <head></head. But I could not see it. Unable to trace the error of the code.

    Thread Starter trnghosh

    (@trnghosh)

    I am new in WordPress and unable to understand the solutions you put here. I am trying to wrote one more time. I have one style.css file in the theme (business) folder with this little code :-

    body{
    margin: 0;
    padding: 0;
    font-family: ‘BenchNine’, sans-serif;
    background-color:#000000;
    }

    In the index.php file two lines of code like this

    <?php get_header(); ?>

    <?php get_footer(); ?>

    In the header.php there is only this one

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <meta charset=”UTF-8″>
    <title> Responsive HTML5 Template</title>
    <?php wp_head();?>
    </head>
    <body>
    Place for the navigation menu of the site.

    for the footer.php

    <?php wp_footer(); ?>

    and in the function.php this one ( as posted by you)

    <?php /**
    * Proper way to enqueue scripts and styles
    */

    function wpdocs_theme_business_scripts() {
    wp_enqueue_style( ‘main-style’, get_stylesheet_uri() );
    }
    add_action( ‘wp_enqueue_scripts’, ‘wpdocs_theme_business_scripts’ );

    ?>

    So if the style.css is linked properly the color of the page must be black but so far it is white. May be I am doing something wrong. Kindly take another look.

    Many thanks for helping me.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Thanks for the response.
    Here is the head section of the header.php

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <meta charset=”UTF-8″>
    <title>Ubusina – Responsive HTML5 Template</title>

    <?php wp_head();?>
    </head>

    One again thanks.

    Thread Starter trnghosh

    (@trnghosh)

    It seems I asked one foolish question so that no one respond to this one. What actually I am trying to learn. There is a html template and I like to convert it in WordPress. In this process the first problem I am facing is that I could not link the style.css to this one ( my theme) , hence could not style it as per my html template. So if anybody help me how can I do this one this will be better. I searched and tested what I get but did not get the solution. Can anybody help me or give me some clue how can I do this one.

    With hope.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Anyone please, this is my first attempt to convert one html template to wordpress.

    Am I missing something to link the stylesheet to the theme or the way I am doing this is not ok !!

    Please give some response.

    Many thanks for all of you who read this post.

    Thanks.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Thanks Niki Bilejn for the response. I found some tutes there but they are not complete in many times and I have to search for the next part. So writing here for some full course video.

    Thanks for the response one more time.

    trghosh

    Thread Starter trnghosh

    (@trnghosh)

    Yes I did this one. Now I test.

    Thanks.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Hello

    juggledad

    I think you understand my problem. I think you are right in saying how to upload the themes. Now where should I upload the plugins ? There is folder in the wp-content/plugins , do I create one folder inside the plugins folder and upload all the plugins files there ?
    Say I want to use “ABC” plugins so , do I make a folder at wp-content/plugins named “ABC” and upload all the files of this plugins to there.

    Is that work for me locally?

    Once again thanks for your reply.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    I tested WordPress locally at my PC through WAMP so could not understand how can I use FTP or File Manager in this extreme case.

    My knowledge is not suffice I know so once again seek all of your help in this matter. I need your help.

    Many thanks all of you for reply so far.

    Thanks.

    trnghosh

    Forum: Plugins
    In reply to: Installing plugin locally.
    Thread Starter trnghosh

    (@trnghosh)

    Is there any method to use plugins locally in my PC. I am new in WordPress so seek your reply.

    Please.

    trnghosh

    Thread Starter trnghosh

    (@trnghosh)

    Now my code is

    <?php

    // Add new post type for Recipes
    add_action(‘init’, ‘cooking_recipes_init’);
    function cooking_recipes_init()
    {
    $args = array(
    ‘label’ => (‘Recipes’),
    ‘singular_label’ => (‘Recipe’),
    ‘public’ => true,
    ‘publicly_queryable’ => true,
    ‘show_ui’ => true,
    ‘query_var’ => true,
    ‘rewrite’ => true,
    ‘capability_type’ => ‘post’,
    ‘hierarchical’ => false,
    ‘menu_position’ => null,
    ‘supports’ => array(‘title’,’editor’,’comments’)
    );
    register_post_type(‘recipes’,$args);
    }
    ?>

    And God it works!! OH! I am really perplexed to get your help. Stuck here for two days.

    Thanks.

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