Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Jan 18: 1.5 release

How delete description in question page - SEO !

+1 vote
When you put your question to Google, you'll se "question": + page description. It's not good for SEO becoiuse title is too long.
Where to delete site info ?
asked Aug 21, 2010 in Q2A Core by marcin1

2 Answers

0 votes
I'm not sure I understand, but if you mean that you want to remove the META description tag from the question pages, you can comment out this line:

$qa_content['description']=qa_html(qa_shorten_string_line($question['content'], 150));

You can also make it shorter by lowering the number 150.
answered Aug 22, 2010 by gidgreen
hi
no becouse I want to have descr. Copy any question to google. You'll see that there is:
question title + Question2Answer
Second part is useful
So I want delete part of title
+1 vote
To remove the site name from page titles, change this line in qa-page.php:

'<TITLE>'.((empty($qa_content['title']) || empty($qa_request)) ? '' : (strip_tags($qa_content['title']).' - ')).qa_html(qa_get_option($qa_db, 'site_title')).'</TITLE>'

...to...

'<TITLE>'.((empty($qa_content['title']) || empty($qa_request)) ? qa_html(qa_get_option($qa_db, 'site_title')) : strip_tags($qa_content['title'])).'</TITLE>'
answered Aug 22, 2010 by gidgreen
Personally I disagree, I much prefer having the site name at the end of the page title - in fact most websites do this anyway. Also, it's not a problem if the page title is a bit long, as long as the important part (i.e. the question title) is in the first 65 characters.

However, it would be better if the title tag (and all HTML content) was part of the theme, so users can edit this easily if needed.
Out of my view I would prefer an optional solution for the sites name in the title.

The sitename in the title is important if the site has a descriptive name.
It as well could be helpful to have this searchterm at the beginning of the title.
A custom basic term in the sitedescription as well could help for sites with a nondescriptive name.

I think for a future release best would be the 2 options:

-sitename
-custom term

and

- beginning
- end
- dont show

I think this felxibility is important, as many questions titles, related to the websites topic, do not include the most important term if the sites name does not include it.

More options like including the category name in the title are thinkable as well...

Dont want to make it complicated, but these questions will come often, once many more people use Q2A..

monk333