If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
September 17, 2012 at 9:38 pm #16391
Hello eveyone, I want to display a welcome message in my site, and like you to help me figure out witch way is better.
1- Tell the theme to display a page before the entries feed.
Here I’m asking if it possible to tell the template to display a WELCOME PAGE I create in between the slider, and the entries feed like this:
Welcomepage (always here after the slider)
Entries feeds (last entries on my site)
2-Put a welcome message (one in English, the other in Spanish) in the php files of the theme using qTranslate plugin
Other option is to put the message in the php. I’m using qTranslate, the problem is I don’t know how to display the spanish welcome message in the Spanish site, and the English message in the English version.
The problem is all the text I put in the php files is always showing up on my site so visitor see both English and Spanish welcome message.
Do you think some of these will work or can suggest other option?
Thanks!September 19, 2012 at 4:15 pm #91340September 21, 2012 at 7:09 pm #91341
I’m not really sure how you would go about doing either of those. I’m not familiar with qtranslate at all so I really can’t answer what you would need to do for that.
As to putting in a secondary php function, you definitely could do something like that but it would require you to write the function from scratch. It is doable, but it isn’t what we can do for you through support. You would need to look into a freelance web developer if you wanted to have it custom done.
Otherwise, I would definitely recommend you look into a plugin that could do something similar to what you are looking for. There is most likely something out there designed to show a welcome page or message for first time visitors.
DevinSeptember 24, 2012 at 4:01 pm #91342
Devin, thanks, I did manage to put the welcome massage in the index.php file in several languages. I just put the code here in case someone need it.
First make sure to have installed the qTranslate plugin and the go to yout php file and insert:
<?php _e("<!--:es--><p>Texto en Español<!--:--><!--:en-->Text in English<!--:-->"); ?>
Replacing Texto en Español for your spanish text and Text in English for your english text.
The plugin support several languages you can add by simple getting the code (Example pt for portugues)
By the way, Devin do you know how to add a link a to a word in my php file?
thanks!September 26, 2012 at 6:54 am #91343
Sure – just wrap it into an ahref html tag. Eg if you want to apply a link to the word “WordPress” use following code:
Replace “WordPress ” with your link text and http://wordpress.org/ with your link target/url.September 26, 2012 at 12:57 pm #91344
Dude, thanks, however that doens’t work inside the <?php code I put for the welcome message in different languages. Do I need to apply an additional code in order to make it work inside my welcome message or it’ll be not possible?
Thanks!September 27, 2012 at 4:18 pm #91345
Try changing to a single quote in the ahref. So:
<?php _e("<!--:es--><p>Texto en Español<!--:--><!--:en-->Text in <a href='http://wordpress.org/'>English</a><!--:-->"); ?>
DevinSeptember 29, 2012 at 2:19 pm #91346
The topic ‘Help with welcome message!’ is closed to new replies.