Adding a FB "Like" button to main menu / top of front page

Posted in: Newspaper
Post count: 90

How could one add a Facebook “Like” button to the main menu on the front page? (or somewhere near the top of the page)

Please see the area marked with red at

http://aijaa.com/WfKNUT

I have enabled Like buttons from the settings, but they appear at the end of articles. None is on the front page of the site to allow visitors to like the website as a whole.

Post count: 6600

Hi,

You can use the VC like button element: http://screencast.com/t/W3mp2UTxao
We have disabled some of Visual Composer’s elements and the FB Like button is one of the disabled elements. You can enable it back by editing your functions.php file and comments this line: http://screencast.com/t/9tj0BczF

After you enabled it use the VC page builder to customize the button, then get it’s short-code: http://screencast.com/t/O9jnPcBWk …and add it to the menu using the menu builder, like this: http://screencast.com/t/ndBoPkXX

Result: http://screencast.com/t/Bq2wEy7r85C
Use css to style it if you don’t like it appearance. This is the reason some of the VC element weren’t enabled on VC.

Thanks

Post count: 90

Hi Lucian,

In our folder structure, there is no functions.php file in the wp-admin folder, as there is in your screenshot. However, there is a functions.php file in the wp-includes folder.

That functions.php file does not contain the function

function td_disable_visual_composer_features()

that I would need to edit.

Post count: 7909

Hi,

The functions.php file is in the root of the theme(not in wp-admin folder) as you can see: http://screencast.com/t/QZEVeQU3GB

Thanks!

Post count: 90

True – I found it. But where can I find the Add Element panel shown in the following?

http://screencast.com/t/W3mp2UTxao

Thanks again

Post count: 90

Ok, I found the Add Element view as follows:

Open page editing view -> click Backend editor -> click “Plus” sign

The “Like” button is now in place, but yes, it does look a bit unesthetic, especially right next to a menu item.

And the accompanying text (“Be the first of your friends to like this”) should preferably be in Finnish.

Post count: 7909

Hi,

I think that the text is translated in language that user use on facebook: http://screencast.com/t/QRtpn10S2http://screencast.com/t/iywlXfcP8

Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.