hello i am download one free article directory script and install but this directory not have any meta key word meta discraption meta tags etc option in admin panel please help me how to add these options first see my directory http://goodhealthcare.info/ Thank you
Add the following code: <head> <meta name="keywords" content="keyword1, keyword2,...."> <meta name="description" content="A small description of 160-165 characters containing keywords."> </head> and you are done!
If your new to programming, I would not recommend a 'copy and paste' to the answer quoted. In a HTML document, there is 1 head and 1 body. Within the head tags, that is where you put your meta keyword and description. <html> <head> ... <meta name="keywords" content="programming,help,keywords" /> <meta name="description" content="this is where your description goes, typically seen in Google's description of your site. ie. search result" /> ... </head> <body> ... ... </body> </html> Code (markup): Also note the /> at the end of the meta tags. I highly recommend adding these to the HTML tags that do not have closing tags. Such as: <img src="/image-url.jpg" title="Image" alt="Image" />
Look, meta tags are HTML components, not of PHP. The get_meta_tags function in php reads a HTML document and extracts meta tags out of them for you and returns an array. This function isn't responsible for setting meta tags for you. You have to write them manually in HTML. array get_meta_tags ( string $filename [, bool $use_include_path = false ] ) This function parses the file named filename and parses it line-by-line to get meta tags from the file. The parsing ends at </head>. The code I mentioned in my previous reply is only used to set meta tags for your website.
Hi jammy, you shouldn't post off topic talk here. Please read the rules: http://forums.digitalpoint.com/faq.php
The PHP either echos HTML or it has HTML in non-PHP sections of the file. That's where you'll find the <head> tag and where you'll add your <meta ...> tags. I suggest you learn HTML and PHP (and programming) before you try changing scripts, or you'll end up with unusable scripts. A single error in a PHP script can cause it to give you a blank page.