anjjj
asked 8 years ago

Hello,
I have the DW Question & Answer plugin installed at http://antipytki.ru/vopros-otvet/
but I cannot understand how to move the “Ask a Question” button on top and to make it more visible, like the one you have here 😉
At the moment my button is in the bottom right and is pretty much unnoticable.
How and where can I make the change?
Thanks!
A.

Abdullah Jafar
replied 8 years ago

This is a great question, I would like to know ?

5 Answers
Abdullah Jafar
answered 8 years ago

You might add this HTML in the widget HTML text box

<a href="https://www.designwall.com/ask/" class="btn btn-success btn-block btn-lg">Ask a Question</a>

just replace this url with yours 😀

anjjj
replied 8 years ago

widget? sorry, but what I have is just a bunch of php and html files….(((
there’s even no css !

Abdullah Jafar
replied 8 years ago

hmmm,
as I see your site is using Newsmag WP Theme, you should have a widget…

Anyway, let @DesignWall people take care of this, I just tried to pass you my solution it worked for me 😀

anjjj
replied 8 years ago

So this is the wrong way – Plugins – DW Question Answer – Change ?
OK, I found it! I go to Appearance – Widgets, I see there
DWQA Closed Questions
DWQA Popular Questions
DWQA Latest Questions
DWQA Related Questions

What should I do next please?

Abdullah Jafar
replied 8 years ago

Go to Appearance – Widgets – you see your widgets lists and underneath you have the option to add widget, click it and choose from the menu text widget and paste the HTML line I gave you there.

Please refer to this topic for more info: https://en.support.wordpress.com/widgets/text-widget/

anjjj
answered 8 years ago

Wow, that’s getting more and more interesting.
I got there and clicked “Text (Arbitrary text or HTML)” and now have 
Newsmag default
Custom menu
Text: sunscribe to the news
Recents comments: last comments
Recent Posts: Activity of ONK, last publications.
Text
Footer 1
Footer 2
Footer 3

When I click “Recent Posts: Activity of ONK, last publications.”
I can change the title and number of posts to show
and that’s all.
where to can I enter the code you kindly provided?

anjjj
replied 8 years ago

I kind of understand what you mean, I managed to put the button, thank you for the help,
but this button was visible on EVERY page in the right collumn. I used the Text widget. Maybe I need to use another one? As I need to put the button ONLY at http://antipytki.ru/vopros-otvet/
just under the title of the page.
What widget exactly shall I use?
Furthermore, this style – class=”btn btn-success btn-block btn-lg”
is quite confusing, red on red when onMouseOver, how can I change that please?

anjjj
replied 8 years ago

And your solution is not about correcting the present link in DW Question & Answer plugin BUT about adding a NEW button. I actually wanted to make the former.

Abdullah Jafar
answered 8 years ago

For displaying this button only on a specific page, you would need to make a custom sidebar for that page, either provided by your theme, and I believe so, or if not, you need to customize it which another issue…
The “red on red” related to your theme, you can see it is here in @designwall green with this css.
If you need to change the colors you may add this css:

.btn-lg, .btn-group-lg>.btn {     padding: 14px 22px 13px;     font-size: 16px;     color: fuchsia;     background-color: gold; }

Please note this css will modify text “Ask Question” and the background but when you hoover with mouse it will display the red as your theme. You can play with colors to get the one you want..
This may not the best way but it is the easiest one.
Hope this helps
Cheers
Abdullah

anjjj
replied 8 years ago

Thank you very much for all your help.
Now tell me please where the sidebar customization is located?
I have the Newsmag theme. And what is sidebar exactly? The block of links?

Abdullah Jafar
replied 8 years ago

hmmm,

you probably need to check if your theme provides sidebar customization, I didn’t have a hand on your theme but you can ask the theme provider for this before you go for any customization that may not be required.

Perhaps @designwall people have an idea about that…

Abdullah Jafar
replied 8 years ago

I found this for you at your theme page in themeforest https://themeforest.net/item/newsmag-news-magazine-newspaper/9512331?s_rank=1, if you check the feature you will find they provide your theme with a custom sidebar for each post/page. Just contact your theme provider and they will guide through this process.

Abdullah Jafar
answered 8 years ago
anjjj
replied 8 years ago

Thank you, but it’s all about SIDEbar. and I need to have the button “ask the q” in the MAIN area, on top. Just under the title.

anjjj
replied 8 years ago

I found – it’s done via Visual composer, adding a button, quite easy.
However, I’m still curious if there’a possibility to customize “ask the question” link in the QA plugin itself (this link is provided after the list of already published questions and it’s just a very simple textual link), or it’s available only in the PRO version. Thanks.

jgbrock
replied 5 years ago

Did you ever get an answer about changing the link for the ask question button?

DominicStaff
answered 5 years ago

<You can custom the archive-question.php file, and find the line 32.

<div class="dwqa-ask-question"><a href="<?php echo dwqa_get_ask_link(); ?>"><?php _e( 'Ask Question', 'dwqa' ); ?></a></div>
jgbrock
replied 5 years ago

sorry, I am a newbie at this – how do I access the code to read and edit it?

Dominic Staff
replied 5 years ago

You can use the FTP to access your files. or edit from Dashboard > plugin edit then select the Q&A plugin on the right-hand select box and go to the templates folder to find this file.
See the screenshot: http://prntscr.com/lwb04n
If you still face their issue, you can create a private question and send me your username & password of your site. We will check and help you resolve it.

Powered by DW Question & Answer Pro