Forum Replies Created

Viewing 15 replies - 76 through 90 (of 185 total)
  • Thread Starter Lars Henriksen

    (@adjunkten)

    Yes, I see this footer.php in my child theme – but I don’t remember why it is there . I remember wanting to customize the text in my footer, though. Should I just delete this footer.php file?

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content after
     *
     * @package GeneratePress
     */
    ?>
    
    	</div><!-- #content -->
    </div><!-- #page -->
    <?php do_action('generate_before_footer'); ?>
    <div <?php generate_footer_class(); ?>>
    	<?php 
    	do_action('generate_before_footer_content');
    	
    	// Get how many widgets to show
    	$widgets = generate_get_footer_widgets();
    	
    	if ( !empty( $widgets ) && 0 !== $widgets ) : 
    	
    		// Set up the widget width
    		$widget_width = '';
    		if ( $widgets == 1 ) $widget_width = '100';
    		if ( $widgets == 2 ) $widget_width = '50';
    		if ( $widgets == 3 ) $widget_width = '33';
    		if ( $widgets == 4 ) $widget_width = '25';
    		if ( $widgets == 5 ) $widget_width = '20';
    		?>
    		<div id="footer-widgets" class="site footer-widgets">
    			<div class="inside-footer-widgets grid-container grid-parent">
    				<?php if ( $widgets >= 1 ) : ?>
    					<div class="footer-widget-1 grid-parent grid-<?php echo apply_filters( 'generate_footer_widget_1_width', $widget_width ); ?> tablet-grid-<?php echo apply_filters( 'generate_footer_widget_1_tablet_width', '50' ); ?>">
    						<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-1')): ?>
    							<aside class="widget inner-padding widget_text">
    								<h4 class="widget-title"><?php _e('Footer Widget 1','generatepress');?></h4>			
    								<div class="textwidget">
    									<p><?php printf( __( 'Replace this widget content by going to <a href="%1$s"><strong>Appearance / Widgets</strong></a> and dragging widgets into this widget area.','generatepress' ), admin_url( 'widgets.php' ) ); ?></p>
    									<p><?php printf( __( 'To remove or choose the number of footer widgets, go to <a href="%1$s"><strong>Appearance / Customize / Layout / Footer Widgets</strong></a>.','generatepress' ), admin_url( 'customize.php' ) ); ?></p>
    								</div>
    							</aside>
    						<?php endif; ?>
    					</div>
    				<?php endif;
    				
    				if ( $widgets >= 2 ) : ?>
    				<div class="footer-widget-2 grid-parent grid-<?php echo apply_filters( 'generate_footer_widget_2_width', $widget_width ); ?> tablet-grid-<?php echo apply_filters( 'generate_footer_widget_2_tablet_width', '50' ); ?>">
    					<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-2')): ?>
    						<aside class="widget inner-padding widget_text">
    							<h4 class="widget-title"><?php _e('Footer Widget 2','generatepress');?></h4>			
    							<div class="textwidget">
    								<p><?php printf( __( 'Replace this widget content by going to <a href="%1$s"><strong>Appearance / Widgets</strong></a> and dragging widgets into this widget area.','generatepress' ), admin_url( 'widgets.php' ) ); ?></p>
    								<p><?php printf( __( 'To remove or choose the number of footer widgets, go to <a href="%1$s"><strong>Appearance / Customize / Layout / Footer Widgets</strong></a>.','generatepress' ), admin_url( 'customize.php' ) ); ?></p>
    							</div>
    						</aside>
    					<?php endif; ?>
    				</div>
    				<?php endif;
    				
    				if ( $widgets >= 3 ) : ?>
    				<div class="footer-widget-3 grid-parent grid-<?php echo apply_filters( 'generate_footer_widget_3_width', $widget_width ); ?> tablet-grid-<?php echo apply_filters( 'generate_footer_widget_3_tablet_width', '50' ); ?>">
    					<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-3')): ?>
    						<aside class="widget inner-padding widget_text">
    							<h4 class="widget-title"><?php _e('Footer Widget 3','generatepress');?></h4>			
    							<div class="textwidget">
    								<p><?php printf( __( 'Replace this widget content by going to <a href="%1$s"><strong>Appearance / Widgets</strong></a> and dragging widgets into this widget area.','generatepress' ), admin_url( 'widgets.php' ) ); ?></p>
    								<p><?php printf( __( 'To remove or choose the number of footer widgets, go to <a href="%1$s"><strong>Appearance / Customize / Layout / Footer Widgets</strong></a>.','generatepress' ), admin_url( 'customize.php' ) ); ?></p>
    							</div>
    						</aside>
    					<?php endif; ?>
    				</div>
    				<?php endif;
    				
    				if ( $widgets >= 4 ) : ?>
    				<div class="footer-widget-4 grid-parent grid-<?php echo apply_filters( 'generate_footer_widget_4_width', $widget_width ); ?> tablet-grid-<?php echo apply_filters( 'generate_footer_widget_4_tablet_width', '50' ); ?>">
    					<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-4')): ?>
    						<aside class="widget inner-padding widget_text">
    							<h4 class="widget-title"><?php _e('Footer Widget 4','generatepress');?></h4>			
    							<div class="textwidget">
    								<p><?php printf( __( 'Replace this widget content by going to <a href="%1$s"><strong>Appearance / Widgets</strong></a> and dragging widgets into this widget area.','generatepress' ), admin_url( 'widgets.php' ) ); ?></p>
    								<p><?php printf( __( 'To remove or choose the number of footer widgets, go to <a href="%1$s"><strong>Appearance / Customize / Layout / Footer Widgets</strong></a>.','generatepress' ), admin_url( 'customize.php' ) ); ?></p>
    							</div>
    						</aside>
    					<?php endif; ?>
    				</div>
    				<?php endif;
    				
    				if ( $widgets >= 5 ) : ?>
    				<div class="footer-widget-5 grid-parent grid-<?php echo apply_filters( 'generate_footer_widget_5_width', $widget_width ); ?> tablet-grid-<?php echo apply_filters( 'generate_footer_widget_5_tablet_width', '50' ); ?>">
    					<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-5')): ?>
    						<aside class="widget inner-padding widget_text">
    							<h4 class="widget-title"><?php _e('Footer Widget 5','generatepress');?></h4>			
    							<div class="textwidget">
    								<p><?php printf( __( 'Replace this widget content by going to <a href="%1$s"><strong>Appearance / Widgets</strong></a> and dragging widgets into this widget area.','generatepress' ), admin_url( 'widgets.php' ) ); ?></p>
    								<p><?php printf( __( 'To remove or choose the number of footer widgets, go to <a href="%1$s"><strong>Appearance / Customize / Layout / Footer Widgets</strong></a>.','generatepress' ), admin_url( 'customize.php' ) ); ?></p>
    							</div>
    						</aside>
    					<?php endif; ?>
    				</div>
    				<?php endif; ?>
    			</div>
    		</div>
    	<?php
    	endif;
    	do_action('generate_after_footer_widgets');
    	?>
    	<footer class="site-info" itemtype="https://schema.org/WPFooter" itemscope="itemscope">
    		<div class="inside-site-info grid-container grid-parent">
    			<?php do_action( 'generate_credits' ); ?>
    		</div>
    	</footer><!-- .site-info -->
    	<?php do_action( 'generate_after_footer_content' ); ?>
    </div><!-- .site-footer -->
    
    <?php
    /**
     * generate_after_footer hook.
     *
     * @since 2.1
     */
    do_action( 'generate_after_footer' );
     wp_footer();
    ?>
    
    </body>
    </html>

    Ahh, got it.

    I did have a custom footer.php but had forgotten all about it.
    The patch in Github solved my problem.

    Thank you very much.

    Lars

    Hi Tom, thanks for helping.

    I am using this for a custom footer:

    /**
    *Fjern temaets normale copyright
    */
    
    add_action('after_setup_theme','generate_copyright_remove_default_message');
    function generate_copyright_remove_default_message()
    {
    		
    	remove_action( 'generate_credits', 'generate_add_footer_info' );
    	remove_action( 'generate_copyright_line','generate_add_login_attribution' );
    }
    
    /**
     * Add the custom copyright
     * @since 0.1
     */
    add_action('generate_credits','generate_copyright_add_custom_message');
    function generate_copyright_add_custom_message()
    {
    ?>
    		Digitalt lejrb?l <i class="fab fa-free-code-camp" style="color:orange"></i> skabt med <i class="fa fa-heart" style="color:red"></i> til historiel?rere - Del og hersk!<br/>
      		<a href="https://historielaerer.dk/privatlivspolitik">Privatlivspolitik/GDPR</a><br/>
      		<a href="https://eepurl.com/4H3hz"><i class="fas fa-envelope-square fa-2x"></i></a>
      		<a href="https://www.facebook.com/historielaererforeningen"><i class="fab fa-facebook-square fa-2x"></i></a>
    		<a href="https://historielaerer.dk/feed/podcast"><i class="fa fa-podcast fa-2x"></i></a>
    		<a href="https://twitter.com/forumhistoricus"> <i class="fab fa-twitter-square fa-2x"></i></a> 
    		<a href="https://www.linkedin.com/company/historiel%C3%A6rerforeningen-for-gymnasiet-og-hf"> <i class="fab fa-linkedin-square fa-2x"></i></a>
    		<a href="https://www.youtube.com/channel/UCS4VfPJF-jyU_D66ulPBTKQ"> <i class="fab fa-youtube-square fa-2x"></i></a>
    <?php
    }

    .. but I can’t locate <?php wp_footer(); ?> in this?

    Yes, I have created a custom template for podcasts, but that was more than a year ago, and I am pretty sure, that this issue occured just recently.

    Hi Tom,

    I have the same problem with a missing ‘back to top’ button, and I am not using Elementor Canvas. I tried to deactivate all plugins, but still no button ?

    This is my site

    Thanks

    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    No, I click it when I receive the email. No special characters.

    I am not locked out of my site, but I recently disabled social Login, so my users have to generate a new password.

    Thanks for answering.

    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    Thanks Lap, that is helpful.

    If I choose ‘subscribed’ as default, will all of my 900 users receive an opt-in mail, or is it only triggered when a non subscription user logs in to my site?

    +1 on this issue. Please release 1.3.0 ??

    Thanks,
    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    Confirmed, WP Typography was the culprit on #1, and #2 is solved with latest version.

    Thanks, Yannick.

    Forum: Plugins
    In reply to: [Link Library] Link Rating

    +1 for this idea.
    Having users rate the links would be a nice feature.

    Thread Starter Lars Henriksen

    (@adjunkten)

    Thanks for the css – the book icon makes sense for now.

    Kind regards,

    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    I have a few questions afterall:

    1) When a user signs up via Buddypress, the tick box in the wordpress profile is not checked?

    2) GDPR: Does a user have to opt-in and accept Email-marketing in their Mailchimp-profile after subscription via WordPress?

    3) In the ‘default opt-in status’ I have chosen ‘not subscribed’ – does this mean that a subscriper is removed from my list when they login to wp-site?

    Thanks,
    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    I took your advice here, and deactivated Akismed validation, and that seemed to fix the issue.

    Thanks,
    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    Hi Yannick

    I edited usersubmission.php like you asked above, but it didn’t help.
    I would like to roll back to previous version – is that possible?

    best,

    Lars

    Thread Starter Lars Henriksen

    (@adjunkten)

    Hi Yannick,

    I have linked to my settings file.
    Symptons: When I click ‘submit’ I get the ‘link submit error message’ (in Danish)

    I don’t have the time right now to edit code, sorry.

    Cheers,

    Lars

Viewing 15 replies - 76 through 90 (of 185 total)