sir
I'm new to the drupal. I want to put twitter button in my drupal 7 web site in the footer.I use twitter button code to html.tpl.php file and i put code to the below the page bottom ().It works correctly.But button it display below the footer in my site.But i want to display twitter button in the footer.How can i do this.
I want only the log to my site's twitter page when clicking button.
this is the code which i use (https://twitter.com/about/resources/buttons#follow)
Follow #twitter
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
thank you
You're best off using the Twitter Follow Block module or Follow Button module or a similar one to do this for you. They'll each give you a block which you can then place wherever you want, without having to manually add the code to your template. You can then just go to the blocks page and move it to the region you wish to place it in and order it relative to the other items in that region using the drag handles on the left.
If you really want it completely custom coded in yourtemplate, you're probably looking for page.tpl.php, not html.tpl.php. You won't have as much control over placement, though.
Related
I am designing a wordpress site for a friend. He wants the bio text to appear after clicking on necessary image. I noticed this is straight forward with Elementor Pro. I want to keep things free for him at the mo.
I am running the Astra theme with basic Elementor. I also know how to code so if you think this is a custom css job then let me know the work around. (I'm brand new to WP)
Many thanks
Try adding an onclick event to the image and write some java script to add text where you want or may be enable a hidden textarea ??
You can check this link below for reference
How do I add a .click() event to an image?
I really appreciate your generosity in taking the time to help me out!
I am working on a portfolio site to showcase my graphic work on wordpress.
For most themes, when you click on a list item on the portfolio it directs you to a new page dedicated to that item. I want it to be that when you click on the link, a big popup (about half the screen) comes up that displays the contents.
Is there a way to make the page content into a popup? Is there a plugin I can use for this?
You can see what I am looking for in this site:http://www.mikekus.com/
When you click on the link for each item, it doesn't redirect you to a new page. A popup comes up with the page information. How can I do that on wordpress?
Thank you in advance for your assistance!
Here is what that site is running on: Dunked.
There are quite a few options out there for this, especially in the WordPress plugin area. One fairly barebones looking one is WP Post Popup which, as the name implies, turns your posts into modal pop-up's instead of a new page.
Not sure if there is anything out of the box that is comparable to popping up on the side like the page you linked. With some CSS work though you could probably make the one I linked above, or any of them for that matter, look as you would like.
If you want to try and make something on your own, I would recommend doing some reading up on modal windows.
I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!
i'm a completely new in Drupal. I'm building a website that in the home page has the typical 3 blocks on the button where you can click and go to some specific page or article.
I create that as Block and I even create that with Nodeblock, they are displayed in the right place and with the right text and images but what I can't make it work is make them be a big link, linked to their article or page, so when user will click it will be directly redirected to the main page.
Something like:
Block: discover
<div>Discover more about our last offer </div>
How can I do that?
I can't find anything close on the web...
Without seeing your site it's hard to say what the best course of action is, however I would suggest using the Views Module.
You could create a block with views and output any field as a link. In the Views UI you can set the url to link to any piece of content above it, using a token value. If you want to link to an item that is not visible, you can hide that field by selecting the "exclude from display" option in that field's settings.
You can also always use css to expand the size of the anchor tag to encompass the entire div.
Here is a tutorial:
https://www.youtube.com/watch?v=3L9JLZOb_LQ
in your block add
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.block-link').each(function(){
jQuery(this).parents('.block').slice('0,1').wrap('');
});
});
</script>
I already have a modal window for login using simple modal login,I need to have another modal window in the same page when a link is clicked to create account,which will also be a modal window.How can I have multiple modal windows using simple modal Login plugin ?What files do I need to change in order to achieve that? please advise.
You can have as many modals on the page as you like but only ever one at any one time.
$("#element-one").modal({options});
$("#element-two").modal({options});
Put the above code in the same place as the other JS on the page and put your html link in wherever you want it to appear on your site.
Link to activate 2nd Simple Modal
The plugin uses the jQuery simple modal plugin so you can look through the documentation there for more help:
http://www.ericmmartin.com/projects/simplemodal/