I can't make a on click pop up using "Popup Domination" and wordpress theme - onclick

I have been going crazy over this....
I can't figure out where to put this code in the page, or what to change it to for a customizable button created from the word press theme.
It doesnt seem there is anywhere to put that code.
This is what they describe as the on click process
2 Here is what the code where the button is located looks like:
code from the wordpress theme, the text editor side
am I looking in the wrong place?

It looks to be working but for some reason an auto appeared that might be the problem...
it also messed up with your "href=..." are you sure you did close the properly?
There's no css for popdom so even if it was right the popup will not appear, you have to find a way to delete these auto tags, try to up the a tag around the entire column instead of the button. If it not works
let's start by trying to remove wpautop
put this in your functions.php
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
But sometimes the theme adds it again, so check your theme functions.php and look for things like this
"function mytheme_format($content) { "
and add the remove_filter inside it.
If you manage to make it work let's get back to your button, check again if your code looks like this:
[...something]<a class="example"> [button button attributes] </a> [...something]
You can search another solutions for this problem looking for "Tinymce autop" and "visual composer autop".

Related

Child theme is showing blank page

I have created a child theme. After activation, it is showing a blank page. How do I solve it? Please check the following code and let me know, what is the mistake.
style.css-
functions.php-
As you can see the theme is activated-
Showing a blank page on the browser-
Please make sure that you do not have new line character in your action name so it reads like:
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
Instead of writing 'parent-style' in the enqueue function, write 'twentyfifteen-style'. The word 'parent' is just a placeholder as an example.

WordPress Remove autoP on Widget only

all solutions I found here werte global (remove filter auto) or didn't work, so I hope you guys have other solutions too ;)
I am writing a plugin with new widgets for the siteorigin page builder. I guess this is just a sideinfo, I don't think it is siteorigin problem.
Whenever I output content from the tinymce / WYSIWYG-Editor, it wraps p-tags around the content. I don't want this. Is there a chance to prevent the auto-p from the widget, but not global, as I want it to work on pages, posts and other widgets.
I am thinking of something like
I tried to replace
$mytext = preg_replace('#^<\/p>|<p>$#', '', $text);
and I tried to prevent the filter
echo remove_filter( $text, 'wpautop' );
Both didn't work for me. So YOU could be my hero now...
thank you guys.

Adding A Button Between post-content and Related Posts Thumbnail Plugin on WordPress

I am trying to add a button to my WordPress template. Basically, I have the post and then there is the Related Posts Thumbnails widget that appears. I want the button to go between the text of the post and the related posts thumbnail widget. The code in my 'Single Post' that contains all of this is as follows:
<div class="post-content">
<?php the_content(__('<em><strong>More:</strong> Read the rest of this entry...</em>', 'life-is-simple')); ?>
</div>
I know the Related Posts Thumbnails plugin falls within this code because it's at that place when I 'Inspect Element' on Google Chrome. I can't find how to edit the order of things within that div though. Any help would be greatly appreciated, thanks!
EDIT
Clarification: I am using the Life Is Simple WordPress theme although it has been custom editing quite a bit (mostly on the CSS side of things though).
That plugin is probably appending the output to the_content with a filter .
That means , that the output is being added to the_content automatically. it is a common behaviour.
You need to look at the pluginĀ“s admin interface to see if you can have an alternative way (I believe there is ) which is using a template tag. in that case, you should put the template tag after the div where the the_content() is .
EDIT I :
After a small dig, - in fact there is - you need to put
<?php get_related_posts_thumbnails(); ?>
Then the plugin should know by itself not to append to the_content.
For parameter passing, or if something is not working, go read their APi or help files.
You'll probably need to edit single.php or archive.php in your theme. If nothing is occuring there that looks familiar, it's probably using a loop. In which case you might find what you are looking for either in loop.php, loop-single.php, or loop-archive.php depending on what type of page you are on and how the theme was constructed. Add your button near where you find Read the rest of this entry...
With more information (such as what theme you are using), one might be able to help more as well.

jQuery Gallery is not working in WordPress

Even though, I used same code for both of them http://bda.ctuproject.com/ is not showing tip image. When you go over any item in http://bda.ctuproject.com/wp-content/themes/twentyten/exam/index.html you will see that box will come up saying what is that picture but it's not doing it when I put it in WordPress. Why any ideas ?
http://bda.ctuproject.com
http://bda.ctuproject.com/wp-content/themes/twentyten/exam/index.html
i think you're calling the jquery script twice
As #Colby said, you are loading jQuery twice. Try putting this into your active theme's functions.php file to deregister the WP jQuery load:
if( !is_admin()){
wp_deregister_script('jquery');
}

why is the <?php wp_head ?> tag creating a top margin at the top of my theme header

Hey people, I've been coming here for a while but just decided to join.
I'm new to php and I'm trying to make a website with WordPress as the CMS.
Anyway, I'm basically making my own theme because I don't want my website to look like a blog, and it's going pretty smoothly so far but theres this huge top margin gap in the browser even when I set margins to 0px.
I tried trial and error and found out that it's being caused by: <?php wp_head(); ?>
It's two different things.
1. wp_head() function
wp_head() is a template tag to print whatever plugin / theme specific function used by wordpress action. Read codex for more detail about it.
2. The admin bar
The top margin, is generated by wordpress's admin bar.
To fix this for logged in users you can do a couple of things:
Disable admin bar from the admin:
Go to admin panel
Users >> User Profile
Uncheck 'when viewing
site' on 'Show Admin Bar'
Remove the admin bar from your theme entirely:
Open your functions.php
Add this to it:
function my_function_admin_bar(){ return false; }
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
Remove only the code which creates the css:
Open your functions.php
Add this to it:
function my_filter_head() { remove_action('wp_head', '_admin_bar_bump_cb'); }
add_action('get_header', 'my_filter_head');
Note: Extensive updates are from #hitautodestruct
you neeed to call wp_footer() in your footer
just insert this line <?php wp_footer();?> into your footer.php file
If you have updated your wordpress install to the latest version.. there seems to be some bug with the admin bar...
were it would produce an inline stylesheet appended to the top of your pages.. causing the margin-top:28px
see here
1 recomendation is to put a new function into your functions.php file located in your theme folder.. this will completly remove the bar, so no users of your theme will have any of the same issues!
function my_function_admin_bar(){
return false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
Not sure if this will help.. but worth a shot.. also turning off the admin bar while viewing the front end of the site under your profile page..

Resources